The ds3231 RTC chip bitmask values for 12- versus 24-hour mode were reversed,

flip them so that times in the 20:00:00 to 23:59:59 range read correctly.

Reported by:	Dr. Rolf Jansen <freebsd-rj@obsigna.com>
Pointy hat:	ian@
This commit is contained in:
ian 2020-07-19 18:53:19 +00:00
parent 79684cc161
commit 3b9a908f5b

View File

@ -38,8 +38,8 @@
#define DS3231_MINS 0x01
#define DS3231_MINS_MASK 0x7f
#define DS3231_HOUR 0x02
#define DS3231_HOUR_MASK_12HR 0x3f
#define DS3231_HOUR_MASK_24HR 0x1f
#define DS3231_HOUR_MASK_12HR 0x1f
#define DS3231_HOUR_MASK_24HR 0x3f
#define DS3231_HOUR_IS_PM 0x20
#define DS3231_HOUR_USE_AMPM 0x40
#define DS3231_WEEKDAY 0x03