Skip to content

Commit

Permalink
Update DS3231.cpp
Browse files Browse the repository at this point in the history
Fixed #11
  • Loading branch information
cvmanjoo committed Aug 16, 2022
1 parent e452d6a commit edeaa60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DS3231.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void DS3231::setMonth(uint8_t month)
month = bin2bcd(month);
bitWrite(month,7,century_bit);

Wire.beginTransmission(PCF8563_ADDR);
Wire.beginTransmission(DS3231_ADDR);
Wire.write(0x05); // Month Register
Wire.write(month);
Wire.endTransmission();
Expand Down

0 comments on commit edeaa60

Please sign in to comment.