From 45535c46b444c4ae33ee1e974bb06abf7254a132 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 09 Aug 2021 01:05:04 +0800 Subject: [PATCH] update appweb build shell script --- modules/c/tsl2561_i2c.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/c/tsl2561_i2c.c b/modules/c/tsl2561_i2c.c index f9a879b..3884671 100644 --- a/modules/c/tsl2561_i2c.c +++ b/modules/c/tsl2561_i2c.c @@ -160,8 +160,8 @@ int chn0_data = 0; int chn1_data = 0; - double div = 0.0; - double lux = 0.0; + float div = 0.0; + float lux = 0.0; tsl2561_power(ON); @@ -183,7 +183,7 @@ goto OUT; } - div = (double)chn1_data / (double)chn0_data; + div = (float)chn1_data / (float)chn0_data; if( div>0 && div<=0.5 ) lux = 0.304*chn0_data-0.062*chn0_data*pow(div,1.4); -- Gitblit v1.9.1