Skip to content

Commit 29f7f37

Browse files
facchinmgiulcioffi
authored andcommitted
Fix Tone signature
1 parent edaf6ae commit 29f7f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/Tone.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void toneAccurateClock (uint32_t accurateSystemCoreClockFrequency)
5555
toneMaxFrequency = accurateSystemCoreClockFrequency / 2;
5656
}
5757

58-
void tone (uint32_t outputPin, uint32_t frequency, uint32_t duration)
58+
void tone (unsigned char outputPin, unsigned int frequency, unsigned long duration)
5959
{
6060

6161
// Avoid divide by zero error by calling 'noTone' instead
@@ -158,7 +158,7 @@ void tone (uint32_t outputPin, uint32_t frequency, uint32_t duration)
158158
NVIC_EnableIRQ(TONE_TC_IRQn);
159159
}
160160

161-
void noTone (uint32_t outputPin)
161+
void noTone (uint8_t outputPin)
162162
{
163163
/* 'tone' need to run at least once in order to enable GCLK for
164164
* the timers used for the tone-functionality. If 'noTone' is called

0 commit comments

Comments
 (0)