Skip to content

Add sanity check for DS3231 RTC probe#2498

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

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.

@oltaco
Copy link
Copy Markdown
Member Author

oltaco commented May 10, 2026

Closed in favour of #2516 as there was a chance this sanity check could fail when the RTC was uninitialised due to power loss.

@oltaco oltaco closed this May 10, 2026
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