mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Bluetooth flash firmware continued
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue