Closed martinjaeger closed 7 months ago
The functions to read/write registers did not have any proper error handling so far.
This PR changes the functions to return the usual int error code instead of void or the read values. Values are now read using a pointer.
int
void
The activation of the chip is moved to a dedicated function (similar to the bq769x2 and isl94202) in order to fix the initialization in main.c.
main.c
The functions to read/write registers did not have any proper error handling so far.
This PR changes the functions to return the usual
int
error code instead ofvoid
or the read values. Values are now read using a pointer.The activation of the chip is moved to a dedicated function (similar to the bq769x2 and isl94202) in order to fix the initialization in
main.c
.