From 71b6354cd0737aefa791265d87187a6cae3651fc Mon Sep 17 00:00:00 2001 From: Our Air Quality Date: Sat, 6 Apr 2019 11:34:12 +1100 Subject: [PATCH] tsl2561: fix a variable declaration the should have been signed. --- extras/tsl2561/tsl2561.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/tsl2561/tsl2561.c b/extras/tsl2561/tsl2561.c index d17c074..b4dc9b5 100644 --- a/extras/tsl2561/tsl2561.c +++ b/extras/tsl2561/tsl2561.c @@ -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