Fixed presets using wrong call mode (e.g. causing buttons to send UDP under direct change type)

Increased hue buffer
This commit is contained in:
cschwinne
2021-07-09 18:42:52 +02:00
parent 5da47636cf
commit 2c6850f6e4
11 changed files with 56 additions and 49 deletions

View File

@@ -4,7 +4,7 @@
* Methods to handle saving and loading presets to/from the filesystem
*/
bool applyPreset(byte index)
bool applyPreset(byte index, byte callMode)
{
if (index == 0) return false;
if (fileDoc) {
@@ -14,7 +14,7 @@ bool applyPreset(byte index)
#ifdef WLED_DEBUG_FS
serializeJson(*fileDoc, Serial);
#endif
deserializeState(fdo, index);
deserializeState(fdo, callMode, index);
} else {
DEBUGFS_PRINTLN(F("Make read buf"));
DynamicJsonDocument fDoc(JSON_BUFFER_SIZE);
@@ -24,7 +24,7 @@ bool applyPreset(byte index)
#ifdef WLED_DEBUG_FS
serializeJson(fDoc, Serial);
#endif
deserializeState(fdo, index);
deserializeState(fdo, callMode, index);
}
if (!errorFlag) {