Adafruit_CircuitPython_Register
Adafruit_CircuitPython_Register copied to clipboard
Why is the alarm year & month hardcoded to Jan 2017?
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?
https://github.com/adafruit/Adafruit_CircuitPython_Register/blob/d37349183b82cd7d05af57a77eb3765e17e7be3f/adafruit_register/i2c_bcd_alarm.py#L154
In contrast, reading the datetime properly returns the year reported from the RTC:
https://github.com/adafruit/Adafruit_CircuitPython_Register/blob/d37349183b82cd7d05af57a77eb3765e17e7be3f/adafruit_register/i2c_bcd_datetime.py#L88