Skip to content

Commit 8dd7fea

Browse files
authored
Update adafruit_ds1307.py
1 parent ceeef55 commit 8dd7fea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_ds1307.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ class DS1307:
9797
def __init__(self, i2c_bus):
9898
self.i2c_device = I2CDevice(i2c_bus, 0x68)
9999

100-
# Try and verify this is the RTC we expect by checking the rate select fields described as "0 = Always reads back as 0."
100+
# Try and verify this is the RTC we expect by checking constant fields.
101+
# These fields are described as "0 = Always reads back as 0." in spec.
101102
buf = bytearray(2)
102103
buf[0] = 0x07
103104
with self.i2c_device as i2c:

0 commit comments

Comments
 (0)