Skip to content

Commit

Permalink
Merge pull request #188 from OpenSprinkler/dev/latch32
Browse files Browse the repository at this point in the history
Fw 2.1.9(9) adding support for OS Latch 3.2 and other feature improvements
  • Loading branch information
rayshobby authored Aug 22, 2021
2 parents ece1f94 + 176e287 commit 2b293a1
Show file tree
Hide file tree
Showing 18 changed files with 1,296 additions and 582 deletions.
4 changes: 4 additions & 0 deletions I2CRTC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ I2CRTC::I2CRTC()
Wire.begin();
}

bool I2CRTC::exists() {
return (addr!=0);
}

bool I2CRTC::detect()
{
addr = 0;
Expand Down
1 change: 1 addition & 0 deletions I2CRTC.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class I2CRTC
static void read(tmElements_t &tm);
static void write(tmElements_t &tm);
static bool detect();
static bool exists();

private:
static uint8_t dec2bcd(uint8_t num);
Expand Down
Loading

0 comments on commit 2b293a1

Please sign in to comment.