diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-04-22 22:07:48 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2019-04-22 22:07:48 -0400 |
| commit | 15b7946fc4c77a6fc2e0639755670e30e4cfd5cf (patch) | |
| tree | b7096d32712054c5a3ee9423d69c9c9ca238f420 | |
| parent | 03f9048778ecad2bbd7d07d01f3b64153a36c177 (diff) | |
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 |
