diff --git a/Arduino/DS1307/DS1307.cpp b/Arduino/DS1307/DS1307.cpp index 1d01761c..c1cfc88a 100644 --- a/Arduino/DS1307/DS1307.cpp +++ b/Arduino/DS1307/DS1307.cpp @@ -360,7 +360,7 @@ void DS1307::setDateTime24(uint16_t year, uint8_t month, uint8_t day, uint8_t ho //////////////////////////////////////////////////////////////////////////////// // utility code, some of this could be exposed in the DateTime API if needed - static uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 }; + static const uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 }; // number of days since 2000/01/01, valid for 2001..2099 static uint16_t date2days(uint16_t y, uint8_t m, uint8_t d) {