Merge pull request #710 from ourairquality/tsl2561-signed-var3
tsl2561: fix a variable declaration the should have been signed.
This commit is contained in:
commit
494cc554b2
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