Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix priority parsing #859

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/parse_args.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ z_query_target_t parse_query_target(const char* arg) {

z_priority_t parse_priority(const char* arg) {
int p = atoi(arg);
if (p < Z_PRIORITY_INTERACTIVE_HIGH || p > Z_PRIORITY_BACKGROUND) {
if (p < Z_PRIORITY_REAL_TIME || p > Z_PRIORITY_BACKGROUND) {
printf("Unsupported priority value [%s]\n", arg);
exit(-1);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/z_pub_thr.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void print_help() {
Options:\n\
-p <PRIORITY> (optional, number [%d - %d], default='%d'): Priority for sending data\n\
--express (optional): Batch messages.\n",
Z_PRIORITY_INTERACTIVE_HIGH, Z_PRIORITY_BACKGROUND, DEFAULT_PRIORITY);
Z_PRIORITY_REAL_TIME, Z_PRIORITY_BACKGROUND, DEFAULT_PRIORITY);
printf(COMMON_HELP);
}

Expand Down
Loading