8000 DS1307 Arduino library - build error caused by non const progmem fixed · ArduinoWorks/i2cdevlib@e455e49 · GitHub
[go: up one dir, main page]

Skip to content

Commit e455e49

Browse files
author
Jan Jurca
committed
DS1307 Arduino library - build error caused by non const progmem fixed
1 parent e0ac048 commit e455e49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Arduino/DS1307/DS1307.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ void DS1307::setDateTime24(uint16_t year, uint8_t month, uint8_t day, uint8_t ho
360360
////////////////////////////////////////////////////////////////////////////////
361361
// utility code, some of this could be exposed in the DateTime API if needed
362362

363-
static uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 };
363+
static const uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 };
364364

365365
// number of days since 2000/01/01, valid for 2001..2099
366366
static uint16_t date2days(uint16_t y, uint8_t m, uint8_t d) {

0 commit comments

Comments
 (0)
0