mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Update the cli dump
command and profile commands so that it shows the
profile being dumped such that it can be copied pasted as commands.
This commit is contained in:
parent
0cde910b75
commit
da485119f7
1 changed files with 5 additions and 1 deletions
|
@ -675,6 +675,10 @@ static void cliDump(char *cmdline)
|
|||
|
||||
if (dumpMask & DUMP_PROFILE) {
|
||||
printf("\r\n# dump profile\r\n");
|
||||
|
||||
printf("\r\n# profile\r\n");
|
||||
cliProfile("");
|
||||
|
||||
printf("\r\n# aux\r\n");
|
||||
|
||||
cliAux("");
|
||||
|
@ -928,7 +932,7 @@ static void cliProfile(char *cmdline)
|
|||
|
||||
len = strlen(cmdline);
|
||||
if (len == 0) {
|
||||
printf("Current profile: %d\r\n", masterConfig.current_profile_index);
|
||||
printf("profile %d\r\n", masterConfig.current_profile_index);
|
||||
return;
|
||||
} else {
|
||||
i = atoi(cmdline);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue