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
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