Skip to content

Commit

Permalink
Changed Directory names
Browse files Browse the repository at this point in the history
  • Loading branch information
SV-Zanshin authored and SV-Zanshin committed Jun 25, 2018
1 parent c0f0cd0 commit 0e606d6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions DS3231M.cpp → src/DS3231M.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ DS3231M_Class::~DS3231M_Class() {} //
*******************************************************************************************************************/
bool DS3231M_Class::begin() { // Start I2C communications //
Wire.begin(); // Start I2C as master device //
Wire.beginTransmission(DS3231M_ADDRESS); // Address the DS3231MM //
Wire.beginTransmission(DS3231M_ADDRESS); // Address the DS3231M //
uint8_t errorCode = Wire.endTransmission(); // See if there's a device present //
if (errorCode == 0) { // If we have a DS3231MM //
if (errorCode == 0) { // If we have a DS3231M //
writeByte(DS3231M_RTCHOUR,readByte(DS3231M_RTCHOUR)&B10111111); // Force use of 24 hour clock //
} // of if-then device detected // //
else return false; // return error if no device found //
Expand Down
File renamed without changes.

0 comments on commit 0e606d6

Please sign in to comment.