Deactivate modeswitch_poll() if power down in progress

This commit is contained in:
Thammi 2012-10-11 19:25:58 +02:00
parent 9b85bf3720
commit 403314ed83

View File

@ -137,7 +137,10 @@ void __attribute__ ((noreturn)) main(void)
for ever {
//main polling loop;
button_poll();
modeswitch_poll();
if(OpMode < mode_num) {
modeswitch_poll();
}
if (OpMode != NextMode){
mode_last_tick = true;