Skip to content

Add sanity check for DS3231 RTC probe#2498

Open
oltaco wants to merge 1 commit intomeshcore-dev:devfrom
oltaco:ds3231-sanitycheck
Open

Add sanity check for DS3231 RTC probe#2498
oltaco wants to merge 1 commit intomeshcore-dev:devfrom
oltaco:ds3231-sanitycheck

Conversation

@oltaco
Copy link
Copy Markdown
Member

@oltaco oltaco commented May 7, 2026

This PR adds a sanity check after probing for DS3231 RTC on the I2C bus.

Some unrelated devices (such as the IMU20948) respond on the same I2C address as DS3231. This can cause AutodiscoverRTCClock to incorrectly identify a non-RTC device as a DS3231, resulting in a non-functioning clock.

The sanity check just makes sure that the data that is coming back is at least plausible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant