Skip to content

Commit

Permalink
Fix button logic
Browse files Browse the repository at this point in the history
Without the patch the display keeps switching the state fast until you release
the button.
  • Loading branch information
AlexanderS committed Jun 3, 2021
1 parent c42890f commit 4192f51
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Firmware/AirQualitySensorD1Mini/AirQualitySensorD1Mini.ino
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,8 @@ void checkModeButton()
if (g_display_state >= NUM_OF_STATES)
{
g_display_state = 1;
return;
} else {
g_display_state++;
return;
}
}

Expand Down

0 comments on commit 4192f51

Please sign in to comment.