summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2022-07-02 15:05:41 -0500
committerDamien George <damien@micropython.org>2022-07-18 13:52:01 +1000
commit2c728c533059a09635a99facfcce18bda8768497 (patch)
treee0dc536fb2559ecc7cea9c5f66c96c140c212945 /py
parent32e32bd761e91b9aa21f98b4f4fd4d96c723fdb6 (diff)
downloadmicropython-2c728c533059a09635a99facfcce18bda8768497.tar.gz
micropython-2c728c533059a09635a99facfcce18bda8768497.zip
extmod/modbluetooth: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register `bluetooth` instead of using a conditional inside of mp_state_vm_t. Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'py')
-rw-r--r--py/mpstate.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index 784eff0a26..a268e8685b 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -196,12 +196,6 @@ typedef struct _mp_state_vm_t {
#include "genhdr/root_pointers.h"
#endif
- // root pointers for extmod
-
- #if MICROPY_PY_BLUETOOTH
- mp_obj_t bluetooth;
- #endif
-
//
// END ROOT POINTER SECTION
////////////////////////////////////////////////////////////