-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I wanted to jot these thoughts down somewhere.
- By default, use natively available
printf()
(which is currently achieved by macroprintf_P
) -
If passed a buffer (as opposed to a stream pointer), then log all messages to the buffer, and let the user manage the buffer size/etc... This stipulates thatsnprintf()
is natively available (which may not be the case for MCUs like the RP2040 -- though the Arduino's avr/pgmspace.h does provide access tosnprintf()
). - By default, use our own parser instead of the natively available
printf()
functionality. However, allow a bypass function (call itlogf()
) to allow user to use nativeprintf()
parser. This could be done with a macro, but it seems inexpensive to implement with alogf()
function.
Metadata
Metadata
Assignees
Labels
No labels