From bd2c887ac3b84c9ffca41691079ab873c61d6d46 Mon Sep 17 00:00:00 2001 From: Howard Dutton Date: Tue, 4 Jan 2022 19:22:30 -0500 Subject: [PATCH] Fix for early default rate ratio calculations --- Globals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Globals.h b/Globals.h index 83e0a1e8..231da34e 100644 --- a/Globals.h +++ b/Globals.h @@ -118,7 +118,7 @@ unsigned long axis2StepsGoto = 1; #define DefaultTrackingRate 1 volatile double trackingTimerRateAxis1 = DefaultTrackingRate; volatile double trackingTimerRateAxis2 = DefaultTrackingRate; -volatile double timerRateRatio; +volatile double timerRateRatio = AXIS1_STEPS_PER_DEGREE/AXIS2_STEPS_PER_DEGREE; volatile bool useTimerRateRatio; long stepsPerWormRotationAxis1; long secondsPerWormRotationAxis1;