Skip to content

Commit 9ea9e04

Browse files
iabdalkaderdpgeorge
authored andcommitted
rp2/mpconfigport: Disable BLE locking when MICROPY_PY_BLUETOOTH enabled.
Bluetooth code runs in the scheduler, so no locking/mutex is required. Signed-off-by: iabdalkader <[email protected]>
1 parent 1976781 commit 9ea9e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/rp2/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ extern uint32_t rosc_random_u32(void);
283283
extern void lwip_lock_acquire(void);
284284
extern void lwip_lock_release(void);
285285

286-
#if MICROPY_PY_BLUETOOTH_CYW43
286+
#if MICROPY_PY_BLUETOOTH || MICROPY_PY_BLUETOOTH_CYW43
287287
// Bluetooth code only runs in the scheduler, no locking/mutex required.
288288
#define MICROPY_PY_BLUETOOTH_ENTER uint32_t atomic_state = 0;
289289
#define MICROPY_PY_BLUETOOTH_EXIT (void)atomic_state;

0 commit comments

Comments
 (0)