Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ArduinoLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ void Logging::printFormat(const char format, va_list *args) {
{
_logOutput->print(va_arg(*args, long), DEC);
}
else if (format == 'u')
{
_logOutput->print(va_arg(*args, unsigned long), DEC);
}
else if (format == 'c')
{
_logOutput->print((char) va_arg(*args, int));
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ where the format string can be used to format the log variables
* %c display as single character
* %d display as integer value
* %l display as long value
* %u display as unsigned long value
* %x display as hexadecimal value
* %X display as hexadecimal value prefixed by `0x`
* %b display as binary number
Expand Down