From 158fd6157004cc139157f64ce83e179555e77008 Mon Sep 17 00:00:00 2001 From: Thijs Elenbaas Date: Mon, 24 May 2021 20:23:29 +0200 Subject: [PATCH] Added NL & LF characters --- ArduinoLog.h | 2 ++ README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ArduinoLog.h b/ArduinoLog.h index 348b536..33e7564 100644 --- a/ArduinoLog.h +++ b/ArduinoLog.h @@ -47,6 +47,8 @@ typedef void (*printfunction)(Print*, int); #define LOG_LEVEL_VERBOSE 6 #define CR "\n" +#define LF "\r" +#define NL "\n\r" #define LOGGING_VERSION 1_0_4 /** diff --git a/README.md b/README.md index ce012db..628cd76 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ where the format string can be used to format the log variables * %p display a printable object ``` - Newlines can be added using the CR keyword or by using the `...ln` version of each of the log functions. The difference when using the `...ln` is that the newline is placed after suffix, and only a single newline can be added. + Newlines can be added using the `CR` keyword or by using the `...ln` version of each of the log functions. The difference when using the `...ln` is that the newline is placed after suffix, and only a single newline can be added. Some terminals prefer `NL` (New line). ### Examples