diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-04-22 23:27:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-22 23:27:20 -0400 |
| commit | 4a251158a9f8f046440b0eb65f7dd3d53f171efe (patch) | |
| tree | b7096d32712054c5a3ee9423d69c9c9ca238f420 | |
| parent | 03f9048778ecad2bbd7d07d01f3b64153a36c177 (diff) | |
| parent | 15b7946fc4c77a6fc2e0639755670e30e4cfd5cf (diff) | |
Merge pull request #1821 from dhalbert/ble-notify-max
Off-by-one error for usage of MAX_TX_IN_PROGRESS
| -rw-r--r-- | ports/nrf/common-hal/bleio/Characteristic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/common-hal/bleio/Characteristic.c b/ports/nrf/common-hal/bleio/Characteristic.c index c9088c2ab..9409b73ce 100644 --- a/ports/nrf/common-hal/bleio/Characteristic.c +++ b/ports/nrf/common-hal/bleio/Characteristic.c @@ -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 |
