mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-04-06 06:53:52 +00:00
append reset dfu command and CONFIG -> ENTER DFU
This commit is contained in:
parent
496b41fa1c
commit
5e9756e4e0
5 changed files with 44 additions and 0 deletions
8
main.c
8
main.c
|
|
@ -120,6 +120,14 @@ static void cmd_reset(BaseSequentialStream *chp, int argc, char *argv[])
|
|||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
if (argc == 1) {
|
||||
if (strcmp(argv[0], "dfu") == 0) {
|
||||
chprintf(chp, "Performing reset to DFU mode\r\n");
|
||||
enter_dfu();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
chprintf(chp, "Performing reset\r\n");
|
||||
|
||||
rccEnableWWDG(FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue