projects
/
apps
/
native
/
st-things-co2-meter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47df502
)
update calculate interval
author
Jeonghoon Park
<jh1979.park@samsung.com>
Fri, 10 Aug 2018 04:18:39 +0000
(13:18 +0900)
committer
Jeonghoon Park
<jh1979.park@samsung.com>
Fri, 10 Aug 2018 04:18:39 +0000
(13:18 +0900)
src/co2.c
patch
|
blob
|
history
diff --git
a/src/co2.c
b/src/co2.c
index
a15565f
..
dc623f6
100644
(file)
--- a/
src/co2.c
+++ b/
src/co2.c
@@
-44,7
+44,7
@@
#define SENSOR_THRESHOLD_CO2 (650)
#define SENSOR_GATHER_INTERVAL (0.05f)
-#define SENSOR_GATHER_COUNT (
5
)
+#define SENSOR_GATHER_COUNT (
60
)
//#define USE_ST_SDK
@@
-110,8
+110,7
@@
static Eina_Bool __get_co2(void *data)
unsigned int avg = 0;
avg = sum/SENSOR_GATHER_COUNT;
- _D("co2 avg value - %u", avg);
- _D("co2 avg voltage - %.2lfv", co2_sensor_value_to_voltage(avg));
+ _D("co2 avg - [%u], [%u ppm]", avg, co2_sensor_value_to_ppm(avg));
sensor_data_set_uint(ad->co2_data, avg);