set homing speed in a better location

master
Eggert Jung 4 years ago
parent 721689c525
commit 76f3fd1d5a

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