Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6fd3349

Browse filesBrowse files
committed
Fix Tone signature
1 parent 8099105 commit 6fd3349
Copy full SHA for 6fd3349

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎cores/arduino/Tone.cpp

Copy file name to clipboardExpand all lines: cores/arduino/Tone.cpp
+2-2Lines changed: 2 additions & 2 deletions
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
// Configure interrupt request
6161
NVIC_DisableIRQ(TONE_TC_IRQn);
@@ -150,7 +150,7 @@ void tone (uint32_t outputPin, uint32_t frequency, uint32_t duration)
150150
NVIC_EnableIRQ(TONE_TC_IRQn);
151151
}
152152

153-
void noTone (uint32_t outputPin)
153+
void noTone (uint8_t outputPin)
154154
{
155155
resetTC(TONE_TC);
156156
digitalWrite(outputPin, LOW);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.