tsl2561: fix a variable declaration the should have been signed.
This commit is contained in:
parent
d0373af5c0
commit
71b6354cd0
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ bool tsl2561_read_lux(tsl2561_t *device, uint32_t *lux)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t temp;
|
int32_t temp;
|
||||||
temp = ((channel0 * b) - (channel1 * m));
|
temp = ((channel0 * b) - (channel1 * m));
|
||||||
|
|
||||||
// Do not allow negative lux value
|
// Do not allow negative lux value
|
||||||
|
|
Loading…
Reference in a new issue