8000 Merge pull request #344 from kohoutovice/master · ArduinoWorks/i2cdevlib@35e7ec1 · GitHub
[go: up one dir, main page]

Skip to content
65F4

Commit 35e7ec1

Browse files
authored
Merge pull request jrowberg#344 from kohoutovice/master
DS1307 Arduino library - build error caused by non const progmem fixed
2 parents e0ac048 + e455e49 commit 35e7ec1

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