Skip to content

Commit

Permalink
Merge pull request #344 from kohoutovice/master
Browse files Browse the repository at this point in the history
DS1307 Arduino library - build error caused by non const progmem fixed
  • Loading branch information
jrowberg authored Dec 12, 2017
2 parents e0ac048 + e455e49 commit 35e7ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Arduino/DS1307/DS1307.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 35e7ec1

Please sign in to comment.