summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
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