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

Commit

Permalink
Fix hour alarm register
Browse files Browse the repository at this point in the history
Co-authored-by: Hamza-Proline <[email protected]>
  • Loading branch information
marqdevx and Hamza-Proline committed Sep 7, 2023
1 parent a9845d2 commit ffb18f7
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ffb18f7

Please sign in to comment.