Serial.print() -> Serial.write() in SD SerialPrint_P function.

http://code.google.com/p/arduino/issues/detail?id=759
This commit is contained in:
David A. Mellis 2012-02-03 17:32:54 -05:00
parent 915e4889e4
commit 3dfc2c6311
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ static UNUSEDOK int FreeRam(void) {
* \param[in] str Pointer to string stored in flash memory.
*/
static NOINLINE void SerialPrint_P(PGM_P str) {
for (uint8_t c; (c = pgm_read_byte(str)); str++) Serial.print(c);
for (uint8_t c; (c = pgm_read_byte(str)); str++) Serial.write(c);
}
//------------------------------------------------------------------------------
/**