mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-11-01 18:04:12 +08:00
Add "factory-reset" console command to reset to firmware default configuration.
This commit is contained in:
1 parent
96bc2707fe
commit
94ac468bf9
1 file changed
+4
@@ -1872,6 +1872,10 @@ void cmd_parser(void) __banked
|
||||
if (cmd_compare(0, "reset")) {
|
||||
print_string("\nRESET\n\n");
|
||||
reset_chip();
|
||||
} else if (cmd_compare(0, "factory-reset")) {
|
||||
print_string("\nFACTORY RESET\n\n");
|
||||
flash_default_config();
|
||||
reset_chip();
|
||||
} else if (cmd_compare(0, "sfp")) {
|
||||
parse_sfp();
|
||||
} else if (cmd_compare(0, "stat")) {
|
||||
|
||||
Reference in new issue
Block a user