Skip to content

Commit 0425224

Browse files
henrygabturmary
authored andcommitted
remove 'unused parameter' compiler warning
1 parent 80bfa47 commit 0425224

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/Wire/examples/slave_receiver/slave_receiver.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ void loop()
2828
// this function is registered as an event, see setup()
2929
void receiveEvent(int howMany)
3030
{
31+
(void)howMany; // avoid compiler warning about unused parameter
32+
3133
while(1 < Wire.available()) // loop through all but the last
3234
{
3335
char c = Wire.read(); // receive byte as a character

0 commit comments

Comments
 (0)