tsl2561: fix a variable declaration the should have been signed.

This commit is contained in:
Our Air Quality 2019-04-06 11:34:12 +11:00
parent d0373af5c0
commit 71b6354cd0

View file

@ -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