From 061ac5edfdaf39bc8fcb2c8e93b7860e7c03a088 Mon Sep 17 00:00:00 2001 From: David Madison Date: Mon, 4 Dec 2017 19:26:35 -0500 Subject: [PATCH] Fixed serial timeout overflow --- 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 a16ef66..4675c08 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -239,7 +239,7 @@ void timeouts(){ lastAckTime = t; // Reset counter // If no data received for an extended time, turn off all LEDs. - if((t - lastByteTime) >= SerialTimeout * 1000) { + if((t - lastByteTime) >= (uint32_t) SerialTimeout * 1000) { memset(leds, 0, Num_Leds * sizeof(struct CRGB)); //filling Led array by zeroes FastLED.show(); mode = Header;