Skip to content

Commit

Permalink
[core] fix Tone.cpp unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Feb 21, 2024
1 parent e3e389e commit 60baa17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/Tone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,16 @@ void noTone(uint8_t pin)
#else
rt_weak void tone(uint8_t pin, unsigned int frequency, unsigned long duration)
{
RT_UNUSED(pin);
RT_UNUSED(frequency);
RT_UNUSED(duration);

LOG_E("tone() is not yet implemented, please define RTDUINO_TONE_HWTIMER_DEVICE_NAME in pins_arduino.h!");
}

rt_weak void noTone(uint8_t pin)
{
RT_UNUSED(pin);
LOG_E("noTone() is not yet implemented, please define RTDUINO_TONE_HWTIMER_DEVICE_NAME in pins_arduino.h!");
}
#endif /* RTDUINO_TONE_HWTIMER_DEVICE_NAME */

0 comments on commit 60baa17

Please sign in to comment.