Skip to content

Commit 474986f

Browse files
committed
restore BLEIO HCI background task
1 parent 4de6c7c commit 474986f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

devices/ble_hci/common-hal/_bleio/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ void common_hal_bleio_gc_collect(void) {
107107
}
108108

109109

110-
void bleio_background(void) {
110+
void bleio_hci_background(void) {
111111
bleio_adapter_background(&common_hal_bleio_adapter_obj);
112112
}

devices/ble_hci/common-hal/_bleio/__init__.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "att.h"
3535
#include "hci.h"
3636

37-
void bleio_background(void);
37+
void bleio_hci_background(void);
3838
void bleio_reset(void);
3939

4040
typedef struct {

supervisor/shared/tick.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#include "supervisor/shared/autoreload.h"
3838
#include "supervisor/shared/stack.h"
3939

40+
#if CIRCUITPY_BLEIO_HCI
41+
#include "common-hal/_bleio/__init__.h"
42+
#endif
43+
4044
#if CIRCUITPY_DISPLAYIO
4145
#include "shared-module/displayio/__init__.h"
4246
#endif
@@ -69,6 +73,10 @@ static void supervisor_background_tasks(void *unused) {
6973

7074
assert_heap_ok();
7175

76+
#if CIRCUITPY_BLEIO_HCI
77+
bleio_hci_background();
78+
#endif
79+
7280
#if CIRCUITPY_DISPLAYIO
7381
displayio_background();
7482
#endif

0 commit comments

Comments
 (0)