From 02045e3b300d00569c6d6acc4e121d65fef41a6a Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Tue, 11 Aug 2020 22:35:19 -0700 Subject: [PATCH] Poe-tay-toe, poe-tah-toe --- cores/nRF5/HardwarePWM.cpp | 2 ++ cores/nRF5/HardwarePWM.h | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cores/nRF5/HardwarePWM.cpp b/cores/nRF5/HardwarePWM.cpp index 6acf51ec..f9927727 100644 --- a/cores/nRF5/HardwarePWM.cpp +++ b/cores/nRF5/HardwarePWM.cpp @@ -92,6 +92,8 @@ void HardwarePWM::DebugOutput(Stream& logger) } logger.printf("\n"); } +#else +void HardwarePWM::DebugOutput(Stream& logger) {} #endif // CFG_DEBUG // returns true ONLY when (1) no PWM channel has a pin, and (2) the owner token is nullptr diff --git a/cores/nRF5/HardwarePWM.h b/cores/nRF5/HardwarePWM.h index c2d8f4e4..024a8c84 100644 --- a/cores/nRF5/HardwarePWM.h +++ b/cores/nRF5/HardwarePWM.h @@ -116,11 +116,7 @@ class HardwarePWM uint8_t usedChannelCount(void) const; uint8_t freeChannelCount(void) const; -#if CFG_DEBUG static void DebugOutput(Stream& logger); -#else - static void inline DebugOutput(Stream& logger) { (void)logger; }; -#endif // CFG_DEBUG }; extern HardwarePWM HwPWM0;