From bd87f5f23b7dec8cea706ab8cdf5f07dd6db3625 Mon Sep 17 00:00:00 2001 From: David Madison Date: Fri, 5 May 2017 07:33:00 -0400 Subject: [PATCH] Guarded magic word check if statements Not explicitly needed, but no reason not to protect it --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 36fedb6..dc0b5dd 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -158,8 +158,8 @@ void headerMode(){ hi, lo, chk; if(headPos < MAGICSIZE){ - if(c == magic[headPos]) headPos++; - else headPos = 0; + if(c == magic[headPos]) {headPos++;} + else {headPos = 0;} } else{ switch(headPos){