remove 'unused parameter' compiler warning

This commit is contained in:
Henry Gabryjelski 2020-01-16 21:47:11 -08:00
parent 4f80972c23
commit d5935a8c51

View file

@ -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