mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-06 02:01:57 +02:00
cmdFactoryReset implementation
This commit is contained in:
@@ -70,7 +70,14 @@ namespace SerialCommands {
|
||||
}
|
||||
|
||||
void cmdFactoryReset(CmdParser * parser) {
|
||||
// TODO Factory reset
|
||||
Serial.print("[OK] FACTORY RESET");
|
||||
for (int i = 0; i <= 4096; i++) // Clear EEPROM
|
||||
EEPROM.write(i, 0xFF);
|
||||
EEPROM.commit();
|
||||
WiFi.disconnect(true); // Clear WiFi credentials
|
||||
ESP.eraseConfig(); // Clear ESP config
|
||||
delay(3000);
|
||||
ESP.restart();
|
||||
}
|
||||
|
||||
void setUp() {
|
||||
|
||||
Reference in New Issue
Block a user