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 { 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;