summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-04-22 23:27:20 -0400
committerGitHub <noreply@github.com>2019-04-22 23:27:20 -0400
commit4a251158a9f8f046440b0eb65f7dd3d53f171efe (patch)
treeb7096d32712054c5a3ee9423d69c9c9ca238f420
parent03f9048778ecad2bbd7d07d01f3b64153a36c177 (diff)
parent15b7946fc4c77a6fc2e0639755670e30e4cfd5cf (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.c2
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