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:
Dan Halbert 2019-04-22 23:27:20 -04:00 committed by GitHub
commit 4a251158a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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