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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user