From ab58c38e7bbc4f132caf8d2459fa4475e337db37 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 31 Dec 2023 13:22:34 +0100 Subject: [PATCH] motordriver frequency diag --- MotorDriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MotorDriver.cpp b/MotorDriver.cpp index 265c8ed..b304204 100644 --- a/MotorDriver.cpp +++ b/MotorDriver.cpp @@ -349,7 +349,7 @@ void MotorDriver::setDCSignal(byte speedcode, uint8_t frequency /*default =0*/) } } #endif - DIAG(F("Brake %d freqencybits %x"), brakePin, f); + DIAG(F("Brake %d freqency %d"), brakePin, f); DCCTimer::DCCEXanalogWriteFrequency(brakePin, f); // set DC PWM frequency to 100Hz XXX May move to setup DCCTimer::DCCEXanalogWrite(brakePin,brake); #else // all AVR here @@ -423,7 +423,7 @@ void MotorDriver::throttleInrush(bool on) { } else { pinMode(brakePin, OUTPUT); } -#else +#else // all AVR here if(on){ DCCTimer::DCCEXanalogWriteFrequency(brakePin, 3); }