Skip to content

Commit

Permalink
fixed InputHandler condition to digitalRead on cplus1
Browse files Browse the repository at this point in the history
  • Loading branch information
pr3y committed Jan 29, 2025
1 parent d5dd94c commit 3e35cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boards/m5stack-cplus1_1/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void InputHandler(void) {
if(!wakeUpScreen()) AnyKeyPress = true;
else goto END;
}
if(axp192.GetBtnPress()) {
if(axp192.GetBtnPress() || digitalRead(UP_BTN)==LOW ) {
PrevPress = true;
EscPress = true;
}
Expand Down

0 comments on commit 3e35cd8

Please sign in to comment.