Skip to content

Commit

Permalink
Fix for Warning on Unused Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
boseji committed Aug 18, 2024
1 parent 781d77f commit ac9c0c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/SwitchExample/SwitchExample.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ void beepCallbackFunction(void *s) // optional
{
tone(3, 2400, 5); // is non-blocking
// Serial.print("BeepCallback: "); Serial.println((char*)s);
(void)s; // Fix Unused warning
}

void setup() {
Expand Down

0 comments on commit ac9c0c3

Please sign in to comment.