diff options
-rw-r--r-- | docs/CREDITS | 1 | ||||
-rw-r--r-- | firmware/drivers/rtc/rtc_ds1339_ds3231.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/CREDITS b/docs/CREDITS index e8fb6a6a11..92e326fccd 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -504,6 +504,7 @@ Christophe Nicolas Yann Muller Sascha Wilde Fred Bauer +Simon Rothen The libmad team The wavpack team diff --git a/firmware/drivers/rtc/rtc_ds1339_ds3231.c b/firmware/drivers/rtc/rtc_ds1339_ds3231.c index 3788dc75c0..01624e048b 100644 --- a/firmware/drivers/rtc/rtc_ds1339_ds3231.c +++ b/firmware/drivers/rtc/rtc_ds1339_ds3231.c @@ -126,7 +126,7 @@ int rtc_read_datetime(struct tm *tm) tm->tm_sec = BCD2DEC(buf[0] & 0x7f); tm->tm_min = BCD2DEC(buf[1] & 0x7f); tm->tm_hour = BCD2DEC(buf[2] & 0x3f); - tm->tm_wday = BCD2DEC(buf[3] & 0x3) - 1; /* timefuncs wants 0..6 for wday */ + tm->tm_wday = BCD2DEC(buf[3] & 0x7) - 1; /* timefuncs wants 0..6 for wday */ tm->tm_mday = BCD2DEC(buf[4] & 0x3f); tm->tm_mon = BCD2DEC(buf[5] & 0x1f) - 1; tm->tm_year = BCD2DEC(buf[6]) + 100; |