We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 048db8a + c4af05a commit 7715caeCopy full SHA for 7715cae
src/EdgeControl_RealTimeClock.cpp
@@ -357,7 +357,7 @@ void EdgeControl_RealTimeClockClass::setHourAlarm(uint8_t hours)
357
{
358
uint8_t dec = hours / 10;
359
uint8_t unit = hours - (dec * 10);
360
- uint8_t hour_alarm = PCF8563T_HOUR_ALARM_AE_H_MASK & ((dec << 4) + unit);
+ uint8_t hour_alarm = PCF8563T_HOUR_ALARM_ON & ((dec << 4) + unit);
361
writeByte(PCF8563T_HOUR_ALARM_REG, hour_alarm); // check formula on datasheet val + 6 * (val / 10)
362
}
363
0 commit comments