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
1d2b04a664
commit
fee886b310
|
@ -163,6 +163,9 @@ static void runCommands(SerialTsChannelBase* tsChannel) {
|
||||||
|
|
||||||
btWrite(tsChannel, "AT+LADDR\r\n");
|
btWrite(tsChannel, "AT+LADDR\r\n");
|
||||||
btReadLine(tsChannel, tmp, sizeof(tmp));
|
btReadLine(tsChannel, tmp, sizeof(tmp));
|
||||||
|
|
||||||
|
btWrite(tsChannel, "AT+STAT\r\n");
|
||||||
|
btReadLine(tsChannel, tmp, sizeof(tmp));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* JDY33 specific settings */
|
/* JDY33 specific settings */
|
||||||
|
@ -203,7 +206,7 @@ static void runCommands(SerialTsChannelBase* tsChannel) {
|
||||||
}
|
}
|
||||||
if (btModuleType == BLUETOOTH_JDY_3x) {
|
if (btModuleType == BLUETOOTH_JDY_3x) {
|
||||||
/* BLE broadcast name */
|
/* 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);
|
btWrite(tsChannel, tmp);
|
||||||
if (btWaitOk(tsChannel) != 0) {
|
if (btWaitOk(tsChannel) != 0) {
|
||||||
goto cmdFailed;
|
goto cmdFailed;
|
||||||
|
|
|
@ -113,8 +113,8 @@ static void resetTs() {
|
||||||
static void printTsStats(void) {
|
static void printTsStats(void) {
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
#ifdef EFI_CONSOLE_RX_BRAIN_PIN
|
#ifdef EFI_CONSOLE_RX_BRAIN_PIN
|
||||||
efiPrintf("Primary UART RX", hwPortname(EFI_CONSOLE_RX_BRAIN_PIN));
|
efiPrintf("Primary UART RX %s", hwPortname(EFI_CONSOLE_RX_BRAIN_PIN));
|
||||||
efiPrintf("Primary UART TX", hwPortname(EFI_CONSOLE_TX_BRAIN_PIN));
|
efiPrintf("Primary UART TX %s", hwPortname(EFI_CONSOLE_TX_BRAIN_PIN));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (false) {
|
if (false) {
|
||||||
|
|
Loading…
Reference in New Issue