console: bluetooth: check if BT port exist before configuring (#4588)
This commit is contained in:
parent
db57bd0100
commit
9632a3e056
|
@ -174,6 +174,11 @@ void bluetoothStart(bluetooth_module_e moduleType, const char *baudRate, const c
|
||||||
|
|
||||||
tsChannel = getBluetoothChannel();
|
tsChannel = getBluetoothChannel();
|
||||||
|
|
||||||
|
if (tsChannel == nullptr) {
|
||||||
|
efiPrintf("No Bluetooth channel configured! Check your board config.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (btProcessIsStarted) {
|
if (btProcessIsStarted) {
|
||||||
efiPrintf("The Bluetooth module init procedure is already started and waiting! To cancel it, run \"bluetooth_cancel\" command!");
|
efiPrintf("The Bluetooth module init procedure is already started and waiting! To cancel it, run \"bluetooth_cancel\" command!");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue