summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-07-24 00:49:06 +1000
committerJim Mussared <jim.mussared@gmail.com>2019-10-01 09:51:02 +1000
commit16f8ceeaaa8262e9483226b18a61da233f257974 (patch)
tree54ea38a31b1034005ee1fddb61a1bd733beb66a8 /py/runtime.c
parentf67fd95f8d412e1ee17b36861aa12e02c30939fa (diff)
extmod/modbluetooth: Add low-level Python BLE API.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index ecbdff2ba..2657e7cc2 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -131,6 +131,10 @@ void mp_init(void) {
MP_STATE_THREAD(current_code_state) = NULL;
#endif
+ #if MICROPY_PY_BLUETOOTH
+ MP_STATE_VM(bluetooth) = MP_OBJ_NULL;
+ #endif
+
#if MICROPY_PY_THREAD_GIL
mp_thread_mutex_init(&MP_STATE_VM(gil_mutex));
#endif