Merge pull request #710 from ourairquality/tsl2561-signed-var3

tsl2561: fix a variable declaration the should have been signed.
This commit is contained in:
Ruslan V. Uss 2019-04-07 17:05:12 +05:00 committed by GitHub
commit 494cc554b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ bool tsl2561_read_lux(tsl2561_t *device, uint32_t *lux)
break;
}
uint32_t temp;
int32_t temp;
temp = ((channel0 * b) - (channel1 * m));
// Do not allow negative lux value