From 41baf5982f1ff35c7974051c057bee4dcacdeef0 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Thu, 12 Dec 2024 11:54:46 +0100 Subject: [PATCH] fix priority parsing --- examples/parse_args.h | 2 +- examples/z_pub_thr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/parse_args.h b/examples/parse_args.h index aab5a247a..c854c1c27 100644 --- a/examples/parse_args.h +++ b/examples/parse_args.h @@ -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); } diff --git a/examples/z_pub_thr.c b/examples/z_pub_thr.c index fbfaff8b1..75b1f1f9a 100644 --- a/examples/z_pub_thr.c +++ b/examples/z_pub_thr.c @@ -80,7 +80,7 @@ void print_help() { Options:\n\ -p (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); }