Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit ca7ff9b

Browse files
Merge pull request #108 from marqdevx/hour_alarm_fix
Fix hour alarm register
2 parents 9617669 + ffb18f7 commit ca7ff9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/utility/RTC/PCF8563T.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ void PCF8563TClass::setHourAlarm(uint8_t hours) {
347347
uint8_t dec = hours / 10;
348348
uint8_t unit = hours - (dec * 10);
349349
uint8_t hour_alarm = PCF8563T_HOUR_ALARM_AE_H_MASK & ((dec << 4) + unit);
350-
writeByte(PCF8563T_HOURS_REG, hour_alarm); //check formula on datasheet val + 6 * (val / 10)
350+
writeByte(PCF8563T_HOUR_ALARM_REG, hour_alarm); //check formula on datasheet val + 6 * (val / 10)
351351
}
352352

353353
/**

0 commit comments

Comments
 (0)