Chris--A / PrintEx

An extension to the Arduino Print library, and much, much more...
GNU General Public License v3.0
61 stars 16 forks source link

Returned value is incorrect in some cases #27

Open jirkaptr opened 6 years ago

jirkaptr commented 6 years ago

Improving printf() and its derivatives is very welcome and useful. Unfortunately, I encountered issue in version 1.2.0: The printf() function and its derivatives should return the number of printed (or filled into buffer - sprintf() ) characters. In PrintEx library this is different:

The counters do not count the characters defined by the %n and %p specifications. (I did not test the %r specification.)