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:
parent
5aff3cb890
commit
35e9cdd3e4
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue