1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

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

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);
}
//------------------------------------------------------------------------------
/**