Skip to content

Commit

Permalink
Adjust output of sbus shell command
Browse files Browse the repository at this point in the history
  • Loading branch information
shengwen-tw committed May 26, 2024
1 parent 8a9cc8a commit f282eca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user/shell/sbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ int sbus(int argc, char *argv[])
/* Raw data */
int i;
for (i = 0; i < 16; i++) {
snprintf(str, PRINT_SIZE_MAX, "channel %d: %d\n\r", i, sbus.rc_val[i]);
snprintf(str, PRINT_SIZE_MAX, "channel %d: %d\n\r", i + 1,
sbus.rc_val[i]);
shell_puts(str);
}

Expand Down

0 comments on commit f282eca

Please sign in to comment.