mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Cleanup
This commit is contained in:
parent
d5a4f8441b
commit
6d94d9e766
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user