Skip to content

Commit 364d085

Browse files
committed
bluetooth/nimble: Schedule hci poll on eventq_put.
1 parent 734e15d commit 364d085

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

extmod/nimble/nimble/nimble_npl_os.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ void ble_npl_eventq_put(struct ble_npl_eventq *evq, struct ble_npl_event *ev) {
293293
}
294294
}
295295
OS_EXIT_CRITICAL(sr);
296+
mp_bluetooth_hci_poll_now();
296297
}
297298

298299
struct ble_npl_event *ble_npl_eventq_get(struct ble_npl_eventq *evq, ble_npl_time_t tmo) {

extmod/nimble/nimble/nimble_npl_os.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,6 @@ void mp_bluetooth_nimble_os_cputime_timer_poll(void);
9595
// --- Must be provided by the MicroPython port -------------------------------
9696

9797
void mp_bluetooth_nimble_hci_uart_wfi(void);
98+
int32_t mp_bluetooth_hci_poll_now(void);
9899

99100
#endif // MICROPY_INCLUDED_STM32_NIMBLE_NIMBLE_NPL_OS_H

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