From 76f3fd1d5a9a83340b9106e85715a26cb4f701ac Mon Sep 17 00:00:00 2001 From: Eggert Jung Date: Tue, 5 Apr 2022 21:56:40 +0200 Subject: [PATCH] set homing speed in a better location --- spule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spule.c b/spule.c index 151f650..48ac745 100644 --- a/spule.c +++ b/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; } } }