From 60c5a6c9e1a2eabd43d8a03505939139b8d0056d Mon Sep 17 00:00:00 2001 From: bdring Date: Mon, 23 Nov 2020 15:14:47 -0600 Subject: [PATCH] Rst responses (#679) * Added verification of changes from $RST command When sending $RST=$ you only get these responses. [MSG:WiFi reset done] [MSG:BT reset done] Added the other things that change. [MSG:WiFi reset done] [MSG:BT reset done] [MSG:Settings reset done] [MSG:Postion offsets reset done] * Update ProcessSettings.cpp * Update Grbl.h * Update ProcessSettings.cpp --- Grbl_Esp32/src/Grbl.h | 2 +- Grbl_Esp32/src/ProcessSettings.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Grbl_Esp32/src/Grbl.h b/Grbl_Esp32/src/Grbl.h index d5e9349f..ed7e9bf9 100644 --- a/Grbl_Esp32/src/Grbl.h +++ b/Grbl_Esp32/src/Grbl.h @@ -23,7 +23,7 @@ // Grbl versioning system const char* const GRBL_VERSION = "1.3a"; -const char* const GRBL_VERSION_BUILD = "20201122"; +const char* const GRBL_VERSION_BUILD = "20201123"; //#include #include diff --git a/Grbl_Esp32/src/ProcessSettings.cpp b/Grbl_Esp32/src/ProcessSettings.cpp index 1a64d945..f8539203 100644 --- a/Grbl_Esp32/src/ProcessSettings.cpp +++ b/Grbl_Esp32/src/ProcessSettings.cpp @@ -54,12 +54,14 @@ void settings_restore(uint8_t restore_flag) { } } } + grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Settings reset done"); } if (restore_flag & SettingsRestore::Parameters) { for (auto idx = CoordIndex::Begin; idx < CoordIndex::End; ++idx) { coords[idx]->setDefault(); } } + grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Position offsets reset done"); } // Get settings values from non volatile storage into memory @@ -358,7 +360,6 @@ Error listAlarms(const char* value, WebUI::AuthenticationLevel auth_level, WebUI return Error::Ok; } - const char* errorString(Error errorNumber) { auto it = ErrorNames.find(errorNumber); return it == ErrorNames.end() ? NULL : it->second;