turn off the motor before power down

This commit is contained in:
bigalex 2012-10-12 01:04:26 +02:00
parent 725f50dd0d
commit a0da114300

View File

@ -59,6 +59,7 @@ void do_powerDown(void)
mode_uninitialized = false;
pwdn_state = 0;
timer_set(&mytimer, 5);
set_motor(MOTOR_OFF);
ledRon = true;
};
if (timer_expired(&mytimer)) {