Skip to content

Commit 1a06f88

Browse files
authored
Cleanup static files from bad Web UI bundle on 2.5.13 release (#5376)
* Cleanup static files from bad Web UI bundle on 2.5.13 release * Check existence first * Esp32 is the only one we care about
1 parent a174ec7 commit 1a06f88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mesh/NodeDB.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,11 @@ void NodeDB::loadFromDisk()
823823
0; // Mark the current device state as completely unusable, so that if we fail reading the entire file from
824824
// disk we will still factoryReset to restore things.
825825

826+
#ifdef ARCH_ESP32
827+
if (FSCom.exists("/static/static"))
828+
rmDir("/static/static"); // Remove bad static web files bundle from initial 2.5.13 release
829+
#endif
830+
826831
// static DeviceState scratch; We no longer read into a tempbuf because this structure is 15KB of valuable RAM
827832
auto state = loadProto(prefFileName, sizeof(meshtastic_DeviceState) + MAX_NUM_NODES_FS * sizeof(meshtastic_NodeInfo),
828833
sizeof(meshtastic_DeviceState), &meshtastic_DeviceState_msg, &devicestate);

0 commit comments

Comments
 (0)