Skip to content

Commit b7b4925

Browse files
committed
[UI] Bugfix: Don't show - None - [SD-CARD] in GPIO selector when SD-Card is not configured (improves letscontrolit#4780)
1 parent cece74a commit b7b4925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/src/Helpers/StringGenerator_GPIO.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ const __FlashStringHelper* getConflictingUse(int gpio, PinSelectPurpose purpose)
274274
}
275275

276276
#if FEATURE_SD
277-
if (Settings.Pin_sd_cs == gpio && includeSDCard) { return F("SD-Card CS"); }
277+
if (validGpio(gpio) && Settings.Pin_sd_cs == gpio && includeSDCard) { return F("SD-Card CS"); }
278278
#endif // if FEATURE_SD
279279

280280

0 commit comments

Comments
 (0)