Clear command log after saving.

This commit is contained in:
chriz
2026-01-26 23:29:23 +01:00
parent b5c249995f
commit 5662285a3e
4 changed files with 22 additions and 1 deletions
+7 -1
View File
@@ -993,7 +993,13 @@ void execute_config(void) __banked
config_done:
// Start saving commands to cmd_history
save_cmd = 1;
clear_command_history();
}
void clear_command_history(void) __banked
{
for (cmd_history_ptr = 0; cmd_history_ptr < CMD_HISTORY_SIZE; cmd_history_ptr++)
cmd_history[cmd_history_ptr] = 0;
cmd_history_ptr = 0;
}
return;
}