check init when spooling is stopped

This commit is contained in:
2022-05-24 19:43:11 +02:00
parent 39f9c1691a
commit 6fbc0d4c08

15
spule.c
View File

@@ -109,14 +109,13 @@ void do_spule(){
if (read_Input(BTN_WICKELN_AUS, RISING)) {
spule_onoff(0);
}
if (read_Input(BTN_INIT, RISING)) {
spule_trans_homed = 0;
taenzer_state.homed = 0;
taenzer_state.active = 0;
windings = 0;
windings_wakeup = 0;
}
}
if (read_Input(BTN_INIT, RISING)) {
spule_trans_homed = 0;
taenzer_state.homed = 0;
taenzer_state.active = 0;
windings = 0;
windings_wakeup = 0;
}
//PORTH |= (1<<5);
}