aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Print.cpp
AgeCommit message (Collapse)Author
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