fix: update SPIFFS binary creation and enhance NFC buffer size

This commit is contained in:
2025-02-22 11:46:17 +01:00
parent 32a6e9dcd3
commit 77b9eda110
5 changed files with 13 additions and 9 deletions

View File

@ -403,7 +403,8 @@ void setupWebserver(AsyncWebServer &server) {
backupJsonConfigs();
}
if (!Update.begin(updateSize, command)) {
// Setze spezifische Update-Flags für SPIFFS-Updates
if (!Update.begin(updateSize, command, command == U_SPIFFS ? true : false, command == U_SPIFFS ? 0 : -1)) {
if (command == U_SPIFFS) {
// Restore JSON config files if update fails at start
restoreJsonConfigs();