From b42dca26c2ff992055ce53bb237a0c1a7f721141 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Wed, 4 Dec 2024 11:07:43 +0100 Subject: [PATCH] Update src/transport/unicast/rx.c Co-authored-by: Alexander Bushnev --- src/transport/unicast/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/unicast/rx.c b/src/transport/unicast/rx.c index aa26b121d..1139ab67f 100644 --- a/src/transport/unicast/rx.c +++ b/src/transport/unicast/rx.c @@ -162,7 +162,7 @@ z_result_t _z_unicast_handle_transport_message(_z_transport_unicast_t *ztu, _z_t break; } } else { - if (_z_sn_precedes(ztu->_sn_res, ztu->_sn_rx_best_effort, t_msg->_body._frame._sn) == true) { + if (_z_sn_precedes(ztu->_sn_res, ztu->_sn_rx_best_effort, t_msg->_body._frame._sn)) { bool consecutive = _z_sn_consecutive(ztu->_sn_res, ztu->_sn_rx_best_effort, t_msg->_body._fragment._sn); ztu->_sn_rx_best_effort = t_msg->_body._frame._sn;