diff --git a/README.md b/README.md index eb47ccfa..1cd859c4 100644 --- a/README.md +++ b/README.md @@ -437,8 +437,8 @@ Send for example `8386` as Downlink on Port 2 to get battery status and time/dat 0x09 reset functions (send this command UNconfirmed only to avoid boot loops!) 0 = restart device (coldstart) - 1 = reset MAC counter to zero - 2 = reset device to factory settings + 1 = zeroize MAC counter + 2 = reset device to factory settings and restart device 3 = flush send queues 4 = restart device (warmstart) 8 = reboot device to maintenance mode (local web server) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index e4b009b3..af0f38b7 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -20,8 +20,9 @@ void set_reset(uint8_t val[]) { reset_counters(); // clear macs break; case 2: // reset device to factory settings - ESP_LOGI(TAG, "Remote command: reset device to factory settings"); + ESP_LOGI(TAG, "Remote command: reset device to factory settings and restart"); eraseConfig(); + do_reset(false); break; case 3: // reset send queues ESP_LOGI(TAG, "Remote command: flush send queue");