Skip to content

Commit

Permalink
Portduino settings: attempt two
Browse files Browse the repository at this point in the history
We don't really need to #include radio code here just to check if the pin is RADIOLIB_NC. We're only interested if scanAndSelect pin matches user button pin, but they won't match if user button is RADIOLIB_NC.
  • Loading branch information
todd-herbert committed Jan 13, 2025
1 parent 8449ba7 commit 7d0d623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/ScanAndSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ bool ScanAndSelectInput::init()
// Short circuit: if selected pin conficts with the user button
#if defined(ARCH_PORTDUINO)
int pinUserButton = 0;
if (settingsMap.count(user) != 0 && settingsMap[user] != RADIOLIB_NC) {
if (settingsMap.count(user) != 0) {
pinUserButton = settingsMap[user];
}
#elif defined(USERPREFS_BUTTON_PIN)
Expand Down

0 comments on commit 7d0d623

Please sign in to comment.