Skip to content

Commit 1bf2707

Browse files
authored
Merge pull request #20 from caternuson/iss15
Remove verification check
2 parents ed71b40 + 65c458d commit 1bf2707

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

adafruit_ds3231.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,6 @@ class DS3231:
9696
def __init__(self, i2c):
9797
self.i2c_device = I2CDevice(i2c, 0x68)
9898

99-
# Try and verify this is the RTC we expect by checking the rate select
100-
# control bits which are 1 on reset and shouldn't ever be changed.
101-
buf = bytearray(2)
102-
buf[0] = 0x0e
103-
with self.i2c_device as i2c_device:
104-
i2c_device.write_then_readinto(buf, buf, out_end=1, in_start=1)
105-
106-
if (buf[1] & 0b00011000) != 0b00011000:
107-
raise ValueError("Unable to find DS3231 at i2c address 0x68.")
108-
10999
@property
110100
def datetime(self):
111101
"""Gets the current date and time or sets the current date and time

0 commit comments

Comments
 (0)