From 15b7946fc4c77a6fc2e0639755670e30e4cfd5cf Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 22 Apr 2019 22:07:48 -0400 Subject: Off-by-one error for usage of MAX_TX_IN_PROGRESS --- ports/nrf/common-hal/bleio/Characteristic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports') 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 -- cgit v1.2.3