1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +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:
Dominic Clifton 2014-09-20 12:40:19 +01:00
parent 0cde910b75
commit da485119f7

View file

@ -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);