Skip to content

Commit

Permalink
Add err
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Feb 14, 2025
1 parent 5a19dcc commit dc0a599
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/ksf/comp/ksDevicePortal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,11 @@ namespace ksf::comps
else if (body == PSTR("erase-all-data"))
{
WiFi.mode(WIFI_OFF);
#if defined(ESP32)
nvs_flash_erase();
#elif defined(ESP8266)
ESP.eraseConfig();
#else
#error Platform not implemented.
#endif
#if ESP32
nvs_flash_erase();
#elif ESP8266
ESP.eraseConfig();
#endif
LittleFS.format();
rebootDevice();
}
Expand Down

0 comments on commit dc0a599

Please sign in to comment.