From b4911b203af268005f82dd1dd3eee19fd01cb35d Mon Sep 17 00:00:00 2001 From: Changwoo Ryu Date: Mon, 27 Feb 2012 00:26:37 +0900 Subject: 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. --- Sprinter/SdFatUtil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sprinter/SdFatUtil.h') 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)); } //------------------------------------------------------------------------------ /** -- cgit v1.2.1