fix(ble_mesh): fixed proxy server might send segment message with incorrect format

refer commit: 7738bca124
This commit is contained in:
luoxu
2025-06-06 14:28:19 +08:00
parent aa840f86a6
commit 91ee3fab5a

View File

@@ -1059,7 +1059,7 @@ static int proxy_segment_and_send(struct bt_mesh_conn *conn, uint8_t type,
net_buf_simple_pull(msg, mtu);
while (msg->len) {
if (msg->len + 1 < mtu) {
if (msg->len + 1 <= mtu) {
net_buf_simple_push_u8(msg, PDU_HDR(SAR_LAST, type));
proxy_send(conn, msg->data, msg->len);
break;