Skip to content

Commit

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

0 comments on commit b9dbe21

Please sign in to comment.