mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +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) {
|
if (dumpMask & DUMP_PROFILE) {
|
||||||
printf("\r\n# dump profile\r\n");
|
printf("\r\n# dump profile\r\n");
|
||||||
|
|
||||||
|
printf("\r\n# profile\r\n");
|
||||||
|
cliProfile("");
|
||||||
|
|
||||||
printf("\r\n# aux\r\n");
|
printf("\r\n# aux\r\n");
|
||||||
|
|
||||||
cliAux("");
|
cliAux("");
|
||||||
|
@ -928,7 +932,7 @@ static void cliProfile(char *cmdline)
|
||||||
|
|
||||||
len = strlen(cmdline);
|
len = strlen(cmdline);
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
printf("Current profile: %d\r\n", masterConfig.current_profile_index);
|
printf("profile %d\r\n", masterConfig.current_profile_index);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
i = atoi(cmdline);
|
i = atoi(cmdline);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue