Fix Ledmap dropdown in presets
platformio: cosmetic updates index.js: ledmap: show filename instead of nr update.htm: remove installed bin prompt json.cpp: deserializeState: assign loadLedmap from root, serializeState: assign loadLedmap to root / remove from root presets.cpp: savePreset: assign loadLedmap from sObj util.cpp: init ledMaps to 0
This commit is contained in:
@@ -13,7 +13,7 @@ static volatile byte callModeToApply = 0;
|
||||
static volatile byte presetToSave = 0;
|
||||
static char quickLoad[3];
|
||||
static char saveName[33];
|
||||
static bool includeBri = true, segBounds = true, selectedOnly = false, playlistSave = false;;
|
||||
static bool includeBri = true, segBounds = true, selectedOnly = false, playlistSave = false;
|
||||
|
||||
static const char *getName(bool persist = true) {
|
||||
return persist ? "/presets.json" : "/tmp.json";
|
||||
@@ -272,6 +272,7 @@ void savePreset(byte index, const char* pname, JsonObject sObj)
|
||||
playlistSave = true;
|
||||
}
|
||||
}
|
||||
loadLedmap = sObj["ledmap"]; //WLEDMM: assign ledmap
|
||||
}
|
||||
|
||||
void deletePreset(byte index) {
|
||||
|
||||
Reference in New Issue
Block a user