* adressed issue: #32 (again)
 * adressed issue: #36
This commit is contained in:
bpohvoodoo
2019-09-13 19:09:09 +02:00
parent 6867d1021b
commit 191251f71b
+1 -2
View File
@@ -1506,7 +1506,6 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght
#endif
#endif
// ***************************************************************************
// Button management
// ***************************************************************************
@@ -1726,7 +1725,7 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght
checkRGBOrder(tmp_rgbOrder);
uint8_t temp_pin;
checkPin((uint8_t) root["ws_pin"]);
WS2812FXStripSettings.fxoptions = constrain(root["ws_fxopt"].as<uint8_t>(), 0, 255) && 0xFE;
WS2812FXStripSettings.fxoptions = constrain(root["ws_fxopt"].as<uint8_t>(), 0, 255) & 0xFE;
jsonBuffer.clear();
return true;
} else {