Skip to content

Commit

Permalink
More clanging...
Browse files Browse the repository at this point in the history
  • Loading branch information
SV-Zanshin committed May 15, 2023
1 parent c8718d6 commit ceae88c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DS3231M.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,9 @@ bool DS3231M_Class::isAlarm() {
@brief return whether either of the two alarms has been triggered
@return true if either of the 2 alarms is triggered, otherwise false
*/
uint8_t controlByte = readByte(DS3231M_CONTROL)&0x02; // Mask out all but last 2 bits for ALM1&2
uint8_t statusByte = readByte(DS3231M_STATUS)&0x02; // Mask out all but last 2 bits for ALM1&2
uint8_t controlByte =
readByte(DS3231M_CONTROL) & 0x02; // Mask out all but last 2 bits for ALM1&2
uint8_t statusByte = readByte(DS3231M_STATUS) & 0x02; // Mask out all but last 2 bits for ALM1&2
return (controlByte & statusByte); // Nonzero when alarm and switch bits set
} // of method isAlarm()
void DS3231M_Class::clearAlarm() {
Expand Down

0 comments on commit ceae88c

Please sign in to comment.