Skip to content

Commit

Permalink
Issue #24 clang-format
Browse files Browse the repository at this point in the history
clang-format is so picky, just one incorrect space and it errors...
  • Loading branch information
SV-Zanshin committed May 15, 2023
1 parent 8a9e3ab commit c8718d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DS3231M.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +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
return (controlByte & statusByte); // Nonzero when alarm and switch bits set
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 c8718d6

Please sign in to comment.