Skip to content

Commit cc281a5

Browse files
committed
CLI: Add Factory Reset command
1 parent cea432e commit cc281a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Firmware/RTK_Everywhere/menuCommands.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ t_cliResult processCommand(char *cmdBuffer)
258258
commandSendExecuteOkResponse(tokens[0], tokens[1]);
259259
return (CLI_OK);
260260
}
261+
else if (strcmp(tokens[1], "FACTORYRESET") == 0)
262+
{
263+
// Apply factory defaults, then reset
264+
commandSendExecuteOkResponse(tokens[0], tokens[1]);
265+
factoryReset(false); // We do not have the SD semaphore
266+
return (CLI_OK); //We should never get this far.
267+
}
261268
else
262269
{
263270
commandSendErrorResponse(tokens[0], tokens[1], (char *)"Unknown command");

0 commit comments

Comments
 (0)