fixed the bug, caused by partly inited units trying to de-init pins

This commit is contained in:
2018-01-02 16:49:30 +01:00
parent 39ad4a8d28
commit 64592c3bb6
5 changed files with 30 additions and 22 deletions
+1
View File
@@ -91,6 +91,7 @@ void LockJumper_Check(void)
if (debo_ticks > 0) {
if (--debo_ticks == 0) {
dbg("Debo finished, state %d", (int)state);
// we've reached a change
#if PLAT_LOCK_BTN
if (state == true) {
+4 -4
View File
@@ -106,8 +106,8 @@ void Indicator_Tick(void)
else if (active_effect == STATUS_DISK_ATTACHED) {
if (effect_time == 0) led_on();
else if (effect_time == 100) led_off();
else if (effect_time == 200) led_on();
else if (effect_time == 700) {
else if (effect_time == 250) led_on();
else if (effect_time == 750) {
led_off();
active_effect = STATUS_NONE;
}
@@ -115,8 +115,8 @@ void Indicator_Tick(void)
else if (active_effect == STATUS_DISK_REMOVED) {
if (effect_time == 0) led_on();
else if (effect_time == 500) led_off();
else if (effect_time == 600) led_on();
else if (effect_time == 700) {
else if (effect_time == 650) led_on();
else if (effect_time == 750) {
led_off();
active_effect = STATUS_NONE;
}