From 173470ff316548b38cbc58bc2d1be17624378fdd Mon Sep 17 00:00:00 2001 From: David Madison Date: Thu, 18 Oct 2018 16:09:08 -0400 Subject: [PATCH] Fixes unused variable warning for serial flush --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 0a390b1..28c0af3 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -250,6 +250,6 @@ void timeouts(){ void serialFlush(){ while(Serial.available() > 0) { - byte r = Serial.read(); + Serial.read(); } }