We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e99b5ea commit 02045e3Copy full SHA for 02045e3
cores/nRF5/HardwarePWM.cpp
@@ -92,6 +92,8 @@ void HardwarePWM::DebugOutput(Stream& logger)
92
}
93
logger.printf("\n");
94
95
+#else
96
+void HardwarePWM::DebugOutput(Stream& logger) {}
97
#endif // CFG_DEBUG
98
99
// returns true ONLY when (1) no PWM channel has a pin, and (2) the owner token is nullptr
cores/nRF5/HardwarePWM.h
@@ -116,11 +116,7 @@ class HardwarePWM
116
uint8_t usedChannelCount(void) const;
117
uint8_t freeChannelCount(void) const;
118
119
-#if CFG_DEBUG
120
static void DebugOutput(Stream& logger);
121
-#else
122
- static void inline DebugOutput(Stream& logger) { (void)logger; };
123
-#endif // CFG_DEBUG
124
};
125
126
extern HardwarePWM HwPWM0;
0 commit comments