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 {
|
for ever {
|
||||||
//main polling loop;
|
//main polling loop;
|
||||||
button_poll();
|
button_poll();
|
||||||
|
|
||||||
|
if(OpMode < mode_num) {
|
||||||
modeswitch_poll();
|
modeswitch_poll();
|
||||||
|
}
|
||||||
|
|
||||||
if (OpMode != NextMode){
|
if (OpMode != NextMode){
|
||||||
mode_last_tick = true;
|
mode_last_tick = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user