Skip to content

Commit 4f5dc66

Browse files
authored
Merge pull request #32 from MattyJeronimo/mjeronimo/fix-cortex-m0-register-width-error
correct register width when retrieving calibration register (fixes #30)
2 parents a648141 + 4103c07 commit 4f5dc66

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)