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

Fix hour alarm register #108

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utility/RTC/PCF8563T.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void PCF8563TClass::setHourAlarm(uint8_t hours) {
uint8_t dec = hours / 10;
uint8_t unit = hours - (dec * 10);
uint8_t hour_alarm = PCF8563T_HOUR_ALARM_AE_H_MASK & ((dec << 4) + unit);
writeByte(PCF8563T_HOURS_REG, hour_alarm); //check formula on datasheet val + 6 * (val / 10)
writeByte(PCF8563T_HOUR_ALARM_REG, hour_alarm); //check formula on datasheet val + 6 * (val / 10)
}

/**
Expand Down