Skip to content

Commit 4103c07

Browse files
committed
correct register width when retrieving calibration register
1 parent a648141 commit 4103c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ds3231.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class DS3231:
9494
alarm2_status = i2c_bit.RWBit(0x0F, 1)
9595
"""True if alarm2 is alarming. Set to False to reset."""
9696

97-
_calibration = i2c_bits.RWBits(8, 0x10, 0, 8, signed=True)
97+
_calibration = i2c_bits.RWBits(8, 0x10, 0, 1, signed=True)
9898

9999
_temperature = i2c_bits.RWBits(
100100
10, 0x11, 6, register_width=2, lsb_first=False, signed=True

0 commit comments

Comments
 (0)