From 066c8a47cbb3354d0ed35f1fda49dcd4d2be70b8 Mon Sep 17 00:00:00 2001 From: Matt Johnson Date: Thu, 23 Nov 2017 01:27:35 +0000 Subject: [PATCH] remove unnecessary lines --- Arduino/McLighting/request_handlers.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/Arduino/McLighting/request_handlers.h b/Arduino/McLighting/request_handlers.h index 7a07337..ef72cd2 100644 --- a/Arduino/McLighting/request_handlers.h +++ b/Arduino/McLighting/request_handlers.h @@ -81,9 +81,6 @@ void handleSetSingleLED(uint8_t * mypayload, uint8_t firstChar = 0) { strncpy (redhex, (const char *) &mypayload[2], 2 ); strncpy (greenhex, (const char *) &mypayload[4], 2 ); strncpy (bluehex, (const char *) &mypayload[6], 2 ); - ledstates[led].red = 0; - ledstates[led].green = 0; - ledstates[led].blue = 0; ledstates[led].red = strtol(redhex, NULL, 16); ledstates[led].green = strtol(greenhex, NULL, 16); ledstates[led].blue = strtol(bluehex, NULL, 16);