Merge pull request #1821 from dhalbert/ble-notify-max
Off-by-one error for usage of MAX_TX_IN_PROGRESS
This commit is contained in:
commit
4a251158a9
|
@ -118,7 +118,7 @@ STATIC void gatts_notify_indicate(bleio_characteristic_obj_t *characteristic, mp
|
|||
.p_data = bufinfo->buf,
|
||||
};
|
||||
|
||||
while (m_tx_in_progress > MAX_TX_IN_PROGRESS) {
|
||||
while (m_tx_in_progress >= MAX_TX_IN_PROGRESS) {
|
||||
#ifdef MICROPY_VM_HOOK_LOOP
|
||||
MICROPY_VM_HOOK_LOOP
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue