Skip to content

Commit 02045e3

Browse files
committed
Poe-tay-toe, poe-tah-toe
1 parent e99b5ea commit 02045e3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cores/nRF5/HardwarePWM.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ void HardwarePWM::DebugOutput(Stream& logger)
9292
}
9393
logger.printf("\n");
9494
}
95+
#else
96+
void HardwarePWM::DebugOutput(Stream& logger) {}
9597
#endif // CFG_DEBUG
9698

9799
// returns true ONLY when (1) no PWM channel has a pin, and (2) the owner token is nullptr

cores/nRF5/HardwarePWM.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ class HardwarePWM
116116
uint8_t usedChannelCount(void) const;
117117
uint8_t freeChannelCount(void) const;
118118

119-
#if CFG_DEBUG
120119
static void DebugOutput(Stream& logger);
121-
#else
122-
static void inline DebugOutput(Stream& logger) { (void)logger; };
123-
#endif // CFG_DEBUG
124120
};
125121

126122
extern HardwarePWM HwPWM0;

0 commit comments

Comments
 (0)