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