File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
firmware/OpenLog_Firmware/OpenLog Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -699,7 +699,8 @@ void readSystemSettings(void)
699
699
// Read whether we should use verbose responses or not
700
700
// Default is true
701
701
setting_verbose = EEPROM.read (LOCATION_VERBOSE);
702
- if (setting_verbose != ON && setting_verbose != OFF)
702
+ // if (setting_verbose != ON && setting_verbose != OFF)
703
+ if (setting_verbose > 1 ) // 0 or 1 are the only valid options
703
704
{
704
705
setting_verbose = ON; // Reset verbose to true
705
706
EEPROM.write (LOCATION_VERBOSE, setting_verbose);
@@ -708,7 +709,8 @@ void readSystemSettings(void)
708
709
// Read whether we should echo characters or not
709
710
// Default is true
710
711
setting_echo = EEPROM.read (LOCATION_ECHO);
711
- if (setting_echo != ON || setting_echo != OFF)
712
+ // if (setting_echo != ON || setting_echo != OFF)
713
+ if (setting_echo > 1 ) // 0 or 1 are the only valid options
712
714
{
713
715
setting_echo = ON; // Reset to echo on
714
716
EEPROM.write (LOCATION_ECHO, setting_echo);
@@ -2288,4 +2290,3 @@ void toggleLED(byte pinNumber)
2288
2290
if (digitalRead (pinNumber)) digitalWrite (pinNumber, LOW);
2289
2291
else digitalWrite (pinNumber, HIGH);
2290
2292
}
2291
-
You can’t perform that action at this time.
0 commit comments