set homing speed in a better location

This commit is contained in:
2022-04-05 21:56:40 +02:00
parent 721689c525
commit 76f3fd1d5a

View File

@@ -50,6 +50,8 @@ void do_spule(){
}
if(!spule_trans_homed){
ICR1 = 100;
OCR1A = 50;
set_Output(MOTOR_TRANS_DIR, 1); // direction: front
TCCR1B |= _BV(CS11); //TURN ON
}
@@ -73,8 +75,6 @@ void do_spule(){
if (read_Input(BTN_INIT, RISING)) {
spule_trans_homed = 0;
ICR1 = 100;
OCR1A = 50;
}
}
}