Match commands in ShapesDemo to documentation (#396)

Signed-off-by: Antón Casas <antoncasas@eprosima.com>
This commit is contained in:
Antón Casas 2025-01-28 07:57:23 +01:00 committed by GitHub
parent 0301e0dc23
commit 5160fb06cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -438,13 +438,13 @@ bool compute_command(
(void) compute_print_command(session, stream_id, 3, "create_datareader", arg1, arg1, 0, 0, 0, ""); (void) compute_print_command(session, stream_id, 3, "create_datareader", arg1, arg1, 0, 0, 0, "");
(void) uxr_run_session_time(session, 20); (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(); print_commands();
} }
else 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); RESTORE_COLOR);
shapes_demo_error = 2; shapes_demo_error = 2;
} }