Bluetooth jdy33: minor fixes (#4852)

* bluetooth: add '-BLE' suffix for BLE broadcast name

* bluetooth: show current connection status before setup procedure

* tunerstudio: actually show EFI_CONSOLE_* pins
This commit is contained in:
Andrey G 2022-11-29 18:26:56 +03:00 committed by GitHub
parent 5aff3cb890
commit 35e9cdd3e4
2 changed files with 6 additions and 3 deletions

View File

@ -163,6 +163,9 @@ static void runCommands(SerialTsChannelBase* tsChannel) {
btWrite(tsChannel, "AT+LADDR\r\n");
btReadLine(tsChannel, tmp, sizeof(tmp));
btWrite(tsChannel, "AT+STAT\r\n");
btReadLine(tsChannel, tmp, sizeof(tmp));
#endif
/* JDY33 specific settings */
@ -203,7 +206,7 @@ static void runCommands(SerialTsChannelBase* tsChannel) {
}
if (btModuleType == BLUETOOTH_JDY_3x) {
/* BLE broadcast name */
chsnprintf(tmp, sizeof(tmp), "AT+NAMB%s\r\n", btName);
chsnprintf(tmp, sizeof(tmp), "AT+NAMB%s-BLE\r\n", btName);
btWrite(tsChannel, tmp);
if (btWaitOk(tsChannel) != 0) {
goto cmdFailed;

View File

@ -113,8 +113,8 @@ static void resetTs() {
static void printTsStats(void) {
#if EFI_PROD_CODE
#ifdef EFI_CONSOLE_RX_BRAIN_PIN
efiPrintf("Primary UART RX", hwPortname(EFI_CONSOLE_RX_BRAIN_PIN));
efiPrintf("Primary UART TX", hwPortname(EFI_CONSOLE_TX_BRAIN_PIN));
efiPrintf("Primary UART RX %s", hwPortname(EFI_CONSOLE_RX_BRAIN_PIN));
efiPrintf("Primary UART TX %s", hwPortname(EFI_CONSOLE_TX_BRAIN_PIN));
#endif
if (false) {