diff options
author | Changwoo Ryu <cwryu@debian.org> | 2012-02-27 00:26:37 +0900 |
---|---|---|
committer | Changwoo Ryu <cwryu@debian.org> | 2012-03-05 00:10:16 +0900 |
commit | b4911b203af268005f82dd1dd3eee19fd01cb35d (patch) | |
tree | bed514295643083ce0b8e6e359d101e6a1fdf697 /Sprinter/SdFatUtil.h | |
parent | 0ed514e153a7fe6fa6d9810e7373798ac4088dff (diff) |
Correct SD for Arduino 1.0 compatibility
With Arduino 1.0 Print class:
- write() should return, and
- print() with a uint_8 or int_8 character argument does not call
print(char) anymore. So character argument should be casted to
'char' explicitly.
Diffstat (limited to 'Sprinter/SdFatUtil.h')
-rw-r--r-- | Sprinter/SdFatUtil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/SdFatUtil.h b/Sprinter/SdFatUtil.h index 8bf9048..de3fee3 100644 --- a/Sprinter/SdFatUtil.h +++ b/Sprinter/SdFatUtil.h @@ -55,7 +55,7 @@ static 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.print(char(c));
}
//------------------------------------------------------------------------------
/**
|