Skip to content
Snippets Groups Projects
Commit a729afa9 authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

drivers/isl29020: fix return value integer error

Problem:

Since `i2c_read_reg` returns (signed) `int` values, the result can
be negative. However, the variable used to save the result is unsigned.

Fix:

Add and use a signed variable for return value storing.
parent 8ba166df
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment