periph / devices

Go·Hardware·Lean - Device drivers
https://periph.io
Apache License 2.0
83 stars 37 forks source link

tlv493d: Auto-reset TLV493D on error #52

Closed bezineb5 closed 1 year ago

bezineb5 commented 1 year ago

When an error occurs, it is necessary to reset the sensor as per the documentation. This will send a recovery command followed by the standard start procedure.

codecov-commenter commented 1 year ago

Codecov Report

Merging #52 (283ca54) into main (600c8cc) will increase coverage by 0.2%. The diff coverage is 20.0%.

@@           Coverage Diff           @@
##            main     #52     +/-   ##
=======================================
+ Coverage   64.4%   64.6%   +0.2%     
=======================================
  Files         56      60      +4     
  Lines       6824    7066    +242     
=======================================
+ Hits        4397    4564    +167     
- Misses      2283    2347     +64     
- Partials     144     155     +11     
Impacted Files Coverage Δ
tlv493d/tlv493d.go 59.0% <20.0%> (-1.4%) :arrow_down:
tca95xx/variants.go 63.6% <0.0%> (ø)
tca95xx/registers.go 87.2% <0.0%> (ø)
tca95xx/tca95xx.go 78.2% <0.0%> (ø)
tca95xx/pins.go 60.4% <0.0%> (ø)
videosink/handler.go 86.4% <0.0%> (+0.6%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

maruel commented 1 year ago

Thanks!