Skip to content

Commit 1601630

Browse files
authored
Merge pull request #3 from Sthing/master
Use 0b prefix for binary values, not 0x.
2 parents 5225a76 + e2be0d9 commit 1601630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DS3231.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ void DS3231::setClockMode(bool h12) {
334334

335335
// Set the flag to the requested value:
336336
if (h12) {
337-
temp_buffer = temp_buffer | 0x01000000;
337+
temp_buffer = temp_buffer | 0b01000000;
338338
} else {
339-
temp_buffer = temp_buffer & 0x10111111;
339+
temp_buffer = temp_buffer & 0b10111111;
340340
}
341341

342342
// Write the byte

0 commit comments

Comments
 (0)