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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy