Skip to content

Commit 158fd61

Browse files
committed
Added NL & LF characters
1 parent c88403e commit 158fd61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ArduinoLog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ typedef void (*printfunction)(Print*, int);
4747
#define LOG_LEVEL_VERBOSE 6
4848

4949
#define CR "\n"
50+
#define LF "\r"
51+
#define NL "\n\r"
5052
#define LOGGING_VERSION 1_0_4
5153

5254
/**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ where the format string can be used to format the log variables
118118
* %p display a printable object
119119
```
120120
121-
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.
121+
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).
122122
123123
### Examples
124124

0 commit comments

Comments
 (0)