From 50e44f477b543e0caaf4abd5d9f7ce61702b863e Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Tue, 7 Apr 2020 14:59:55 +1000 Subject: [PATCH] stm32/main: Peform a clean shutdown of btstack on soft reset. Not just NimBLE. --- ports/stm32/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/main.c b/ports/stm32/main.c index e4f7853826..b5dbfa50fd 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -752,7 +752,7 @@ soft_reset_exit: #endif printf("MPY: soft reboot\n"); - #if MICROPY_BLUETOOTH_NIMBLE + #if MICROPY_PY_BLUETOOTH mp_bluetooth_deinit(); #endif #if MICROPY_PY_NETWORK