Skip to content

Commit

Permalink
fix priority parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Dec 12, 2024
1 parent c0abf3a commit 41baf59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 41baf59

Please sign in to comment.