Off-by-one error for usage of MAX_TX_IN_PROGRESS

This commit is contained in:
Dan Halbert 2019-04-22 22:07:48 -04:00
parent 03f9048778
commit 15b7946fc4
1 changed files with 1 additions and 1 deletions

View File

@ -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