validation of already initialized BT #4191

This commit is contained in:
rusefillc 2022-11-17 11:39:09 -05:00
parent 08cd5a73e2
commit 576371bcc0
1 changed files with 3 additions and 1 deletions

View File

@ -119,8 +119,10 @@ static void runCommands() {
chThdSleepMilliseconds(10); // safety
if (chThdShouldTerminateX() || (baudIdx == efi::size(baudRates))) {
if (baudIdx == efi::size(baudRates))
if (baudIdx == efi::size(baudRates)) {
efiPrintf("Failed to find current BT module baudrate");
return;
}
tsChannel->start(engineConfiguration->tunerStudioSerialSpeed);
}