From 0c5f62b3648b04e880ff62e08d454ce3e0f58037 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Wed, 4 Dec 2024 10:17:38 +0100 Subject: [PATCH] Update src/protocol/codec/transport.c Co-authored-by: Alexander Bushnev --- src/protocol/codec/transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/codec/transport.c b/src/protocol/codec/transport.c index 75f400765..20c99b2cd 100644 --- a/src/protocol/codec/transport.c +++ b/src/protocol/codec/transport.c @@ -70,7 +70,7 @@ z_result_t _z_join_encode(_z_wbuf_t *wbf, uint8_t header, const _z_t_msg_join_t bool has_patch = false; #endif if (msg->_next_sn._is_qos) { - if (_Z_HAS_FLAG(header, _Z_FLAG_T_Z) == true) { + if (_Z_HAS_FLAG(header, _Z_FLAG_T_Z)) { _Z_RETURN_IF_ERR(_z_uint8_encode(wbf, _Z_MSG_EXT_ID_JOIN_QOS | _Z_MSG_EXT_MORE(has_patch))); size_t len = 0; for (uint8_t i = 0; (i < Z_PRIORITIES_NUM) && (ret == _Z_RES_OK); i++) {