Poe-tay-toe, poe-tah-toe

This commit is contained in:
Henry Gabryjelski committed 2020-08-11 22:35:19 -07:00
1 parent e99b5ea40e
commit 02045e3b30
2 files changed
+2 -4

No files matched your search

+2
View File
@@ -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
-4
View File
@@ -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;