Skip to content

Commit

Permalink
Merge pull request arendst#4657 from chaosmaster/patch-2
Browse files Browse the repository at this point in the history
SerialLog: output CR + LF instead of just LF
  • Loading branch information
arendst authored Dec 17, 2018
2 parents 8fa9417 + ba786e3 commit 6f6ea46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonoff/support.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ void AddLog(byte loglevel)
snprintf_P(mxtime, sizeof(mxtime), PSTR("%02d" D_HOUR_MINUTE_SEPARATOR "%02d" D_MINUTE_SECOND_SEPARATOR "%02d "), RtcTime.hour, RtcTime.minute, RtcTime.second);

if (loglevel <= seriallog_level) {
Serial.printf("%s%s\n", mxtime, log_data);
Serial.printf("%s%s\r\n", mxtime, log_data);
}
#ifdef USE_WEBSERVER
if (Settings.webserver && (loglevel <= Settings.weblog_level)) {
Expand Down

0 comments on commit 6f6ea46

Please sign in to comment.