This commit is contained in:
Theo Arends 2023-12-28 17:53:21 +01:00
parent d5a4f8441b
commit 6d94d9e766
2 changed files with 3 additions and 5 deletions

View File

@ -198,11 +198,11 @@ void SerialBridgeInit(void) {
} else {
serial_bridge_buffer = (char*)(malloc(SERIAL_BRIDGE_BUFSIZE));
}
SerialBridgeSerial->flush();
SerialBridgePrintf("\r\n");
#ifdef ESP32
AddLog(LOG_LEVEL_DEBUG, PSTR("SBR: Serial UART%d"), SerialBridgeSerial->getUart());
#endif
SerialBridgeSerial->flush();
SerialBridgePrintf("\r\n");
}
}
}

View File

@ -183,10 +183,8 @@ void MP3PlayerInit(void)
// start serial communication fixed to 9600 baud
if (MP3Player->begin(9600))
{
if (MP3Player->hardwareSerial()) { ClaimSerial(); }
#ifdef ESP32
if (MP3Player->hardwareSerial()) {
ClaimSerial(); // Disable console using uart0
}
AddLog(LOG_LEVEL_DEBUG, PSTR("MP3: Serial UART%d"), MP3Player->getUart());
#endif // ESP32
MP3Player->flush();