Merge branch 'fix/ble_mesh_trans_pending_fix_v5.0' into 'release/v5.0'

fix(ble_mesh): remove tx pending assert (v5.0)

See merge request espressif/esp-idf!38641
This commit is contained in:
Jiang Jiang Jian
2025-05-07 10:10:26 +08:00

View File

@@ -330,8 +330,9 @@ static void schedule_retransmit(struct seg_tx *tx)
* the seg_pending of this segment. * the seg_pending of this segment.
* See BLEMESH25-92 for details */ * See BLEMESH25-92 for details */
if (tx->dst == BLE_MESH_ADDR_UNASSIGNED) { if (tx->dst == BLE_MESH_ADDR_UNASSIGNED) {
assert(tx->seg_pending == 1); if (tx->seg_pending) {
tx->seg_pending = 0; tx->seg_pending--;
}
return; return;
} }