Updated SERIAL define to MYSERIAL, because Arduino 1.0 defines SERIAL as 0.

This commit is contained in:
daid
2012-02-11 16:02:47 +01:00
parent d47a3e5950
commit 2a77c84c8f
5 changed files with 35 additions and 35 deletions

View File

@ -48,7 +48,7 @@ int SdFatUtil::FreeRam() {
* \param[in] str Pointer to string stored in flash memory.
*/
void SdFatUtil::print_P( PGM_P str) {
for (uint8_t c; (c = pgm_read_byte(str)); str++) SERIAL.write(c);
for (uint8_t c; (c = pgm_read_byte(str)); str++) MYSERIAL.write(c);
}
//------------------------------------------------------------------------------
/** %Print a string in flash memory followed by a CR/LF.
@ -58,7 +58,7 @@ void SdFatUtil::print_P( PGM_P str) {
*/
void SdFatUtil::println_P( PGM_P str) {
print_P( str);
SERIAL.println();
MYSERIAL.println();
}
//------------------------------------------------------------------------------
/** %Print a string in flash memory to Serial.