When reading an alarm set point, the tm_year attribute is hardcoded to return 2017 and tm_mon to return 1. Is this intentional? Caused by a limitation somewhere?
|
time.struct_time((2017, 1, mday, hour, minute, seconds, wday, mday, -1)), |
In contrast, reading the datetime properly returns the year reported from the RTC:
|
_bcd2bin(self.buffer[7] & self.mask_datetime[7]) + 2000, |
When reading an alarm set point, the
tm_yearattribute is hardcoded to return 2017 andtm_monto return 1. Is this intentional? Caused by a limitation somewhere?Adafruit_CircuitPython_Register/adafruit_register/i2c_bcd_alarm.py
Line 154 in d373491
In contrast, reading the datetime properly returns the year reported from the RTC:
Adafruit_CircuitPython_Register/adafruit_register/i2c_bcd_datetime.py
Line 88 in d373491