From 6286f5fedfbba5410bdb17f9082ae1f4a2f94431 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Fri, 5 Aug 2022 12:25:32 +0200 Subject: [PATCH] init trackPWM to false so that we do not get false positives later --- MotorDriver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MotorDriver.h b/MotorDriver.h index 7e71687..9e32ea0 100644 --- a/MotorDriver.h +++ b/MotorDriver.h @@ -131,7 +131,7 @@ class MotorDriver { } bool isPWMCapable(); bool canMeasureCurrent(); - bool trackPWM; // this track uses PWM timer to generate the DCC waveform + bool trackPWM = false; // this track uses PWM timer to generate the DCC waveform static bool commonFaultPin; // This is a stupid motor shield which has only a common fault pin for both outputs inline byte getFaultPin() { return faultPin;