Deactivate modeswitch_poll() if power down in progress
This commit is contained in:
parent
9b85bf3720
commit
403314ed83
|
@ -137,7 +137,10 @@ void __attribute__ ((noreturn)) main(void)
|
|||
for ever {
|
||||
//main polling loop;
|
||||
button_poll();
|
||||
|
||||
if(OpMode < mode_num) {
|
||||
modeswitch_poll();
|
||||
}
|
||||
|
||||
if (OpMode != NextMode){
|
||||
mode_last_tick = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user