set homing speed in a better location
This commit is contained in:
4
spule.c
4
spule.c
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user