Bluetooth flash firmware continued

This commit is contained in:
Bertrand Songis
2019-04-25 16:12:06 +02:00
parent 5ab678298f
commit 026d8e84f1
2 changed files with 8 additions and 3 deletions
@@ -89,7 +89,10 @@ void bluetoothInit(uint32_t baudrate, bool enable)
bluetoothWriteState = BLUETOOTH_WRITE_IDLE;
if (enable) {
GPIO_ResetBits(BT_EN_GPIO, BT_EN_GPIO_PIN); // open bluetooth
GPIO_ResetBits(BT_EN_GPIO, BT_EN_GPIO_PIN);
}
else {
GPIO_SetBits(BT_EN_GPIO, BT_EN_GPIO_PIN);
}
}