Skip to content

Commit 2b293a1

Browse files
authored
Merge pull request #188 from OpenSprinkler/dev/latch32
Fw 2.1.9(9) adding support for OS Latch 3.2 and other feature improvements
2 parents ece1f94 + 176e287 commit 2b293a1

18 files changed

+1296
-582
lines changed

I2CRTC.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ I2CRTC::I2CRTC()
3939
Wire.begin();
4040
}
4141

42+
bool I2CRTC::exists() {
43+
return (addr!=0);
44+
}
45+
4246
bool I2CRTC::detect()
4347
{
4448
addr = 0;

I2CRTC.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class I2CRTC
2424
static void read(tmElements_t &tm);
2525
static void write(tmElements_t &tm);
2626
static bool detect();
27+
static bool exists();
2728

2829
private:
2930
static uint8_t dec2bcd(uint8_t num);

0 commit comments

Comments
 (0)