Skip to content

feat: show sensor error on display - #47

Open
PaulaScharf wants to merge 1 commit into
mainfrom
feat/descriptive-errors
Open

feat: show sensor error on display#47
PaulaScharf wants to merge 1 commit into
mainfrom
feat/descriptive-errors

Conversation

@PaulaScharf

@PaulaScharf PaulaScharf commented Jan 22, 2026

Copy link
Copy Markdown
Member

briefly show an error on the display if a sensor could not be initialized. Still run all the other sensors if one errors
image

@PaulaScharf
PaulaScharf requested a review from felixerdy January 22, 2026 11:10
// Read acceleration and distance sensor data as fast as possible
distanceSensor.readSensorData();
bool classified = accelerationSensor.readSensorData();
bool classified = !accelerationSensor.isInitialized() || accelerationSensor.readSensorData();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is may be problematic, because the accelerationsensor is responsible for the measurement intervall of the other sensors. If classified is always true (when acceleration sensor doesnt work) then dust and temp/humid will be measured at a much smaller intervall than before.
But maybe this is also fine?

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