mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Clear command log after saving.
This commit is contained in:
1 parent
b5c249995f
commit
5662285a3e
4 files changed
+22
-1
No files matched your search
+7
-1
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user