Skip to content

correct register width when retrieving calibration register (fixes #30) #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adafruit_ds3231.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class DS3231:
alarm2_status = i2c_bit.RWBit(0x0F, 1)
"""True if alarm2 is alarming. Set to False to reset."""

_calibration = i2c_bits.RWBits(8, 0x10, 0, 8, signed=True)
_calibration = i2c_bits.RWBits(8, 0x10, 0, 1, signed=True)

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