From 25c2aa7b3cfdde1baca107226570ba16aaeaa371 Mon Sep 17 00:00:00 2001 From: Hakan Bastedt Date: Fri, 12 Jan 2024 14:37:25 +0100 Subject: [PATCH] Some cleanup. --- Firmware/src/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Firmware/src/main.cpp b/Firmware/src/main.cpp index 3f4ce0d..192f0a4 100755 --- a/Firmware/src/main.cpp +++ b/Firmware/src/main.cpp @@ -16,7 +16,7 @@ void indexPulseEncoderCB1(void) { Encoder1.indexPulse(); } -#if 1 +#if 0 void indexPulseEncoderCB2(void); MyEncoder Encoder2(TIM3, PB6, indexPulseEncoderCB2); void indexPulseEncoderCB2(void) @@ -32,7 +32,7 @@ void timerCallbackStep1(void) { Step1.timerCB(); } -#if 1 +#if 0 void timerCallbackStep2(void); StepGen Step2(TIM8, 4, PC9, PC10, timerCallbackStep2); void timerCallbackStep2(void) @@ -60,11 +60,9 @@ void cb_get_inputs(void) // Set Master inputs, slave outputs, last operation Obj.EncPos = Encoder1.currentPos(); Obj.EncFrequency = Encoder1.frequency(ESCvar.Time); Obj.IndexByte = Encoder1.getIndexState(); - if (Obj.IndexByte) - Serial1.printf("IS 1\n"); Obj.StepGenOut1.ActualPosition = Step1.actPos(); - Obj.DiffT = 10000 * Step1.reqPos(); + Obj.DiffT = 10000 * Step1.reqPos(); // Debug } void ESC_interrupt_enable(uint32_t mask);