aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Print.cpp
AgeCommit message (Collapse)Author
2022-03-07rename arduino core dir to xinputHEADmasterHampusM
2017-01-07Change double quotes to single quotesPatrick Roncagliolo
- "." is a string literal, and so is treated as the char '.' plus the null char '\0'. - Single quotes reduces the necessary memory for this literal to only one char instead. A string literal as the one actually present may require the use of the method "write(const char *str)", so there could be also a performance overhead. - Another reason to change quotes style is for consistency with line 235. Signed-off-by: Patrick Roncagliolo <ronca.pat@gmail.com>
2016-07-18Cast to "unsigned int" instead of just "unsigned" for consistencySandeep Mistry
2016-03-08Speed and size improvement in Print::printFloat()Benoît Blanchon
Avoid using the overload of print() for signed integer since a negative value is not allowed here. This results in a smaller (unless print(int) is used somewhere else in the program) and faster code because the overload for unsigned integer is simpler.
2016-03-03huh? i guess it's just 'modulo'. let's save even moretico-tico
2015-08-12Print not Aborting on Write() failureChuck Todd
Print::write(const uint8_t *buffer, size_t size) and Print::print(const __FlashStringHelper *ifsh) would continue calling write(char) after a failed write(char) this behavior would render returned count unuseable see arduino/Arduino issue #3614
2015-05-22Optimize printLn calls.Chris--A
2013-12-31Merge branch 'cast' of github.com:Lauszus/Arduino into Lauszus-castCristian Maglie
Conflicts: hardware/arduino/avr/cores/arduino/Print.cpp
2013-12-31Use PGM_P instead of prog_charMatthijs Kooijman
On later versions of avr-libc, prog_char is deprecated. In 0acebeeff48 the one occurence of prog_char was replaced by "char PROGMEM", which is not entirely correct (PROGMEM is supposed to be an attribute on a variable, not on a type, even though this is how things work in older libc versions). However, in 1130fede3a2 a few new occurences of prog_char are introduced, which break compilation on newer libc versions again. This commit changes all these pointer types to use the PGM_P macro from <avr/pgmspace.h>. This macro is just "const char *" in newer libc versions and "const prog_char *" in older versions, so it should always work. References #795
2013-12-27Use reinterpret_cast to cast __FlashStringHelper to const char*Kristian Lauszus
2013-12-24Remove unneeded casts in Print::write(const String&)Matthijs Kooijman
Now that Print::write(const char*) is also available, these casts are no longer needed.
2013-12-23Print.print optimization. Closes #1760Federico Fissore
2012-12-10fixed permissions on a lot of text files. see #1116Federico Fissore
2012-10-18Merged latest changes in AVR arduino coreCristian Maglie
2012-06-23Print "inf" for infinite floating point numbers (using isinf()).David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=961
2012-06-04Printing NaN values as "nan" in printFloat().David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=946
2012-02-12prog_char -> char PROGMEM in Print.cppDavid A. Mellis
http://code.google.com/p/arduino/issues/detail?id=795
2011-10-27Revert "Merge branch 'master' of github.com:arduino/Arduino into ↵Zach Eveland
diskloader_reboot" This reverts commit df9835efafd13685251749bc210c0b96a18a96a5, reversing changes made to ec45af8bfa9222a807c075dd1db4b5aa798bba03. Conflicts: hardware/arduino/variants/mega/pins_arduino.h libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino
2011-03-03Fixing warnings (David H. Lynch Jr).David A. Mellis
2010-08-28Changing String::toCharArray() and getBytes() to accept a buffer, rather ↵David A. Mellis
than return one. That way they don't expose the internal representation of the String class, allowing future optimization. Thanks to Paul Stoffregen.
2010-07-04Adding support for printing Strings to the Print class.David A. Mellis
2009-12-25Adding precision parameter for printing of floats / doubles. Restructured ↵David A. Mellis
the print() and println() functions a bit.
2009-11-21Improving third-party hardware support:David A. Mellis
- moving back to multple cores per platform - using target instead of platform - moving per-board and per-programmer preferences out of Preferences.java and into a new Target class - adding a new "target" preference - support for platform:value values in board preferences for bootloader path and core - XXX: need to support platform:value syntax for board upload.using preferences.
2009-11-07Moving things around.David A. Mellis
2009-04-26Adding write(str) and write(buf, size) methods to Print class and Ethernet ↵David A. Mellis
library Client and Server classes. This allows sending a whole string or buffer at once, reducing the number of ethernet packets.
2009-01-25fixing / improving printFloat() from Mikal HartDavid A. Mellis
2008-11-26Adding support for printing floats and doubles (defaulting to 2 decimal places)David A. Mellis
2008-06-21Wire library patch to provide better error handling.David A. Mellis
2008-05-07Changing Print class to use regular virtual write() function (instead of my hackDavid A. Mellis
ed together version).
2008-04-18Adding the Print class.David A. Mellis