Fix newline regression from this morning

This commit is contained in:
Theo Arends 2022-06-07 14:11:23 +02:00
parent 7af1279b55
commit 2eefdaa0f4
2 changed files with 3 additions and 3 deletions

View File

@ -2593,9 +2593,9 @@ void AddLogData(uint32_t loglevel, const char* log_data, const char* log_data_pa
if ((loglevel <= TasmotaGlobal.seriallog_level) &&
(TasmotaGlobal.masterlog_level <= TasmotaGlobal.seriallog_level)) {
TasConsole.printf("%s%s%s%s\n", mxtime, log_data, log_data_payload, log_data_retained);
TasConsole.printf("%s%s%s%s\r\n", mxtime, log_data, log_data_payload, log_data_retained);
#ifdef USE_SERIAL_BRIDGE
SerialBridgePrintf("%s%s%s%s\n", mxtime, log_data, log_data_payload, log_data_retained);
SerialBridgePrintf("%s%s%s%s\r\n", mxtime, log_data, log_data_payload, log_data_retained);
#endif // USE_SERIAL_BRIDGE
}

View File

@ -185,7 +185,7 @@ void SerialBridgeInit(void) {
serial_bridge_buffer = (char*)(malloc(SERIAL_BRIDGE_BUFFER_SIZE));
}
SerialBridgeSerial->flush();
SerialBridgePrintf("\n");
SerialBridgePrintf("\r\n");
}
}
}