bluetooth/nimble: Schedule hci poll on eventq_put.

Signed-off-by: Andrew Leech <andrew@alelec.net>
pull/8318/merge^2
Andrew Leech 2024-03-20 14:07:21 +11:00
rodzic 663d9e0924
commit 2e1cd87f10
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -33,6 +33,7 @@
#include "extmod/modbluetooth.h"
#include "extmod/nimble/modbluetooth_nimble.h"
#include "mpbthciport.h" // for port specific mp_bluetooth_hci_poll_now()
#define DEBUG_OS_printf(...) // printf(__VA_ARGS__)
#define DEBUG_MALLOC_printf(...) // printf(__VA_ARGS__)
@ -273,6 +274,8 @@ void ble_npl_eventq_put(struct ble_npl_eventq *evq, struct ble_npl_event *ev) {
}
}
OS_EXIT_CRITICAL(sr);
// poll bluetooth to handle any new tasks from the new event.
mp_bluetooth_hci_poll_now();
}
void ble_npl_event_init(struct ble_npl_event *ev, ble_npl_event_fn *fn, void *arg) {