ccxtechnologies / nuttx

Apache NuttX is a mature, real-time embedded operating system (RTOS)
https://nuttx.apache.org/
Apache License 2.0
0 stars 0 forks source link

INA260 Power Sensor verify write #19

Closed CFD2 closed 3 years ago

CFD2 commented 3 years ago

Summary

Refactored write to a register on INA260 power sensor. Fixes #18 Reading from a register is performed after writing to it. The value written to the register is compared with the value read from the register to ensure that write operation was successful.

Impact

Adds write verification in the driver

Testing

Incrementally verified code with debug output and triggered error conditions