Skip to content

Commit

Permalink
Syntax correction for Issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
SV-Zanshin committed May 14, 2023
1 parent 37bf214 commit 81829f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DS3231M.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ bool DS3231M_Class::isAlarm() {
@return true if either of the 2 alarms is triggered, otherwise false
*/
uint8_t controlByte = readByte(DS3231M_CONTROL);
unit8_t statusByte = readByte(DS3231M_STATUS);
uint8_t statusByte = readByte(DS3231M_STATUS);
return ((controlByte & 0xFE) && (statusByte & 0xFE)) |
((controlByte & 0xFD) && (statusByte & 0xFD));
} // of method isAlarm()
Expand Down

0 comments on commit 81829f4

Please sign in to comment.