Skip to content

Commit 95af6a7

Browse files
committed
Fix noTone() when no TIMER_TONE is defined
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 8744a27 commit 95af6a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/arduino/Tone.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ void tone(uint8_t _pin, unsigned int frequency, unsigned long duration)
140140
UNUSED(duration);
141141
}
142142

143-
void noTone(uint8_t _pin)
143+
void noTone(uint8_t _pin, bool destruct)
144144
{
145145
UNUSED(_pin);
146+
UNUSED(destruct);
146147
}
147148
#endif /* HAL_TIM_MODULE_ENABLED && TIMER_TONE && !HAL_TIM_MODULE_ONLY*/

0 commit comments

Comments
 (0)