Skip to content

Commit 4a25115

Browse files
authored
Merge pull request adafruit#1821 from dhalbert/ble-notify-max
Off-by-one error for usage of MAX_TX_IN_PROGRESS
2 parents 03f9048 + 15b7946 commit 4a25115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/nrf/common-hal/bleio/Characteristic.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ STATIC void gatts_notify_indicate(bleio_characteristic_obj_t *characteristic, mp
118118
.p_data = bufinfo->buf,
119119
};
120120

121-
while (m_tx_in_progress > MAX_TX_IN_PROGRESS) {
121+
while (m_tx_in_progress >= MAX_TX_IN_PROGRESS) {
122122
#ifdef MICROPY_VM_HOOK_LOOP
123123
MICROPY_VM_HOOK_LOOP
124124
#endif

0 commit comments

Comments
 (0)