From 7fa7f14fcb758ff86c26ffc154a856f1e13bf45a Mon Sep 17 00:00:00 2001 From: brantel Date: Mon, 7 Jan 2019 15:54:30 -0500 Subject: [PATCH] Update SoftRTClib.cpp Update library to support latest versions of Arduino IDE. --- Libraries/AdafruitLogger/SoftRTClib/SoftRTClib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/AdafruitLogger/SoftRTClib/SoftRTClib.cpp b/Libraries/AdafruitLogger/SoftRTClib/SoftRTClib.cpp index 665fe07..955fb91 100644 --- a/Libraries/AdafruitLogger/SoftRTClib/SoftRTClib.cpp +++ b/Libraries/AdafruitLogger/SoftRTClib/SoftRTClib.cpp @@ -35,7 +35,7 @@ static uint8_t c2b(const char *s) { } //------------------------------------------------------------------------------ // used by c2m and printMmm -static char Mmm[] PROGMEM = "JanFebMarAprMayJunJulAugSepOctNovDec"; +static const char Mmm[] PROGMEM = "JanFebMarAprMayJunJulAugSepOctNovDec"; //------------------------------------------------------------------------------ // convert Mmm string to [0,12] static uint8_t c2m(const char* s) { @@ -96,7 +96,7 @@ void DateTime::printDateTime(Print* pr) const { * \param[in] pr Print stream. */ void DateTime::printDdd(Print* pr) const { - static char Ddd[] PROGMEM = "SunMonTueWedThuFriSat"; + static const char Ddd[] PROGMEM = "SunMonTueWedThuFriSat"; char buf[4]; uint8_t w = dayOfWeek(); strncpy_P(buf, &Ddd[3*w], 3); @@ -437,4 +437,4 @@ bool RTC_DS1307::write(uint8_t address, uint8_t *buf, uint8_t count) { i2cBus_->stop(); return false; } -#endif // DS_RTC_USE_WIRE \ No newline at end of file +#endif // DS_RTC_USE_WIRE