fix: x10 Express boot freeze and bluetooth lockup (#3349)

* Fix attempt for boot issue

* fix: reset BT usart context after de-init
This commit is contained in:
Raphael Coeffic
2023-03-26 11:07:56 +10:00
committed by GitHub
parent d0b95e0a5b
commit 8560c1f6bf
5 changed files with 26 additions and 2 deletions
@@ -97,6 +97,7 @@ void bluetoothDisable()
LL_GPIO_SetOutputPin(BT_EN_GPIO, BT_EN_GPIO_PIN);
if (_bt_usart_ctx) {
STM32SerialDriver.deinit(_bt_usart_ctx);
_bt_usart_ctx = nullptr;
}
}