Skip to content

Commit

Permalink
Added NL & LF characters
Browse files Browse the repository at this point in the history
  • Loading branch information
thijse committed May 24, 2021
1 parent c88403e commit 158fd61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ArduinoLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 158fd61

Please sign in to comment.