turn off the motor before power down
This commit is contained in:
parent
725f50dd0d
commit
a0da114300
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user