Skip to content

Commit

Permalink
dallas: do not wait until value() to report errors
Browse files Browse the repository at this point in the history
sensor loop assumes value(index) value is ok
ref. #2543

move all checks to pre(), value() returns pre-read value
- tick() and pre() are allowed to fail specific device
- pre() would fail the sensor if any of devices fail
- value(index) is never reached unless tick() and pre() succeed
  • Loading branch information
mcspr committed Feb 8, 2024
1 parent 7152cc6 commit 2ea47de
Showing 1 changed file with 232 additions and 158 deletions.
Loading

0 comments on commit 2ea47de

Please sign in to comment.