From 002a0e1b23fecfa9b566afdea8d79cf19ba78535 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Wed, 4 Dec 2024 11:12:58 +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 1c132861b..62a15d6f0 100644 --- a/src/protocol/codec/transport.c +++ b/src/protocol/codec/transport.c @@ -89,7 +89,7 @@ z_result_t _z_join_encode(_z_wbuf_t *wbf, uint8_t header, const _z_t_msg_join_t } #if Z_FEATURE_FRAGMENTATION == 1 if (has_patch) { - 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_PATCH)); _Z_RETURN_IF_ERR(_z_zint64_encode(wbf, msg->_patch)); } else {