Bugfix issue: Just a flicker on WS set single pixel command #31

See: https://github.com/toblum/McLighting/issues/31
This commit is contained in:
Tobias Blum
2017-08-19 23:36:23 +02:00
parent 32bb5ed7ac
commit ae371e0844
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ void handleSetSingleLED(uint8_t * mypayload) {
// decode led index
uint64_t rgb = (uint64_t) strtol((const char *) &mypayload[1], NULL, 16);
uint8_t led = ((rgb >> 24) & 0xFF);
uint8_t led = ((rgb >> 24) & 0xFF);
if (led < strip.numPixels()) {
ledstates[led].red = ((rgb >> 16) & 0xFF);
ledstates[led].green = ((rgb >> 8) & 0xFF);
@@ -85,7 +85,7 @@ void handleSetSingleLED(uint8_t * mypayload) {
strip.show();
}
exit_func = true;
mode = ALL;
mode = CUSTOM;
}
void handleSetNamedMode(String str_mode) {