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.
1 parent 048db8a commit c4af05aCopy full SHA for c4af05a
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