Minor change in handling mode names.

This commit is contained in:
Blaž Kristan
2021-11-03 12:08:29 +01:00
parent 10fc9fe268
commit f66fcfbe6d
4 changed files with 28 additions and 47 deletions

View File

@@ -129,7 +129,7 @@ void serializeSegment(JsonObject& root, WS2812FX::Segment& seg, byte id, bool fo
void serializeState(JsonObject root, bool forPreset = false, bool includeBri = true, bool segmentBounds = true);
void serializeInfo(JsonObject root);
void serializeSRNames(JsonArray arr, const char *qstring);
void extractModeName(uint8_t mode, const char *src, char *dest, uint8_t maxLen);
uint8_t extractModeName(uint8_t mode, const char *src, char *dest, uint8_t maxLen);
void serveJson(AsyncWebServerRequest* request);
bool serveLiveLeds(AsyncWebServerRequest* request, uint32_t wsClient = 0);