Skip to content

Commit

Permalink
Match commands in ShapesDemo to documentation (#396)
Browse files Browse the repository at this point in the history
Signed-off-by: Antón Casas <[email protected]>
  • Loading branch information
4ntn authored Jan 28, 2025
1 parent 0301e0d commit 5160fb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ShapesDemo/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,13 +438,13 @@ bool compute_command(
(void) compute_print_command(session, stream_id, 3, "create_datareader", arg1, arg1, 0, 0, 0, "");
(void) uxr_run_session_time(session, 20);
}
else if (0 == strcmp(name, "list") || 0 == strcmp(name, "l"))
else if (0 == strcmp(name, "help") || 0 == strcmp(name, "h"))
{
print_commands();
}
else
{
printf("%sUnknown command error, write 'l' or 'list' to show the command list.%s\n", RED_CONSOLE_COLOR,
printf("%sUnknown command error, write 'h' or 'help' to show the command list.%s\n", RED_CONSOLE_COLOR,
RESTORE_COLOR);
shapes_demo_error = 2;
}
Expand Down

0 comments on commit 5160fb0

Please sign in to comment.