mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-11-01 18:04:12 +08:00
Merge pull request #726 from L4ky/add-reset-button-webui-console
Add Factory Reset button to WebUI an command to Console
This commit is contained in:
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