Skip to content

Commit

Permalink
remove 'unused parameter' compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygab authored and turmary committed Dec 4, 2020
1 parent 80bfa47 commit 0425224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/Wire/examples/slave_receiver/slave_receiver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ void loop()
// this function is registered as an event, see setup()
void receiveEvent(int howMany)
{
(void)howMany; // avoid compiler warning about unused parameter

while(1 < Wire.available()) // loop through all but the last
{
char c = Wire.read(); // receive byte as a character
Expand Down

0 comments on commit 0425224

Please sign in to comment.