remove 'unused parameter' compiler warning
This commit is contained in:
parent
4f80972c23
commit
d5935a8c51
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue