Skip to content

Commit 033ae7c

Browse files
committed
Merge pull request #1 from Elwell/master
trivial change to declare PROGMEM as const
2 parents f09570e + 61cbc6e commit 033ae7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RTClib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
////////////////////////////////////////////////////////////////////////////////
1717
// utility code, some of this could be exposed in the DateTime API if needed
1818

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

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

0 commit comments

Comments
 (0)