From adc3d703dd1945b2b06c80dd7252cb4e9cc4f485 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Fri, 8 Jan 2016 09:27:22 -0600 Subject: allow changes to protected config if built with debug macros MTS_RADIO_DEBUG_COMMANDS and DEBUG_MAC --- Mode/ModeConfig.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Mode') diff --git a/Mode/ModeConfig.cpp b/Mode/ModeConfig.cpp index 6fbeae0..8f869bf 100644 --- a/Mode/ModeConfig.cpp +++ b/Mode/ModeConfig.cpp @@ -54,6 +54,10 @@ ModeConfig::ModeConfig(DOGS102* lcd, ButtonHandler* buttons, mDot* dot, LoRaHand addCommand(new CmdGetSurveyDataFile(_dot, _serial)); addCommand(new CmdDeleteSurveyDataFile(_dot, _serial)); addCommand(new CmdDummy(_dot, "Exit to main menu", "AT+EXIT", "Exit configuration and return to the main menu")); + +#if MTS_RADIO_DEBUG_COMMANDS + addCommand(new CmdWriteProtectedConfig(_dot)); +#endif } void ModeConfig::printHelp() { -- cgit v1.2.3