From: Jeonghoon Park Date: Mon, 27 Aug 2018 10:52:51 +0000 (+0900) Subject: add more logs X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=1bfb582a348f18e8565bbfcd4562ed3fed472c6d;p=apps%2Fnative%2Fst-things-co2-meter.git add more logs --- diff --git a/src/co2-sensor.c b/src/co2-sensor.c index 5c58667..dba015a 100644 --- a/src/co2-sensor.c +++ b/src/co2-sensor.c @@ -117,8 +117,10 @@ unsigned int co2_sensor_voltage_to_ppm(double voltage) return 400; ppm = pow(10, (voltage - co2_zp_volt)/slope_value + log400); -// if (ppm > 10000) -// ppm = 10000; + if (ppm > 10000) { + _W("ppm value[%lf] is too large - limiting to 10000ppm", ppm); + ppm = 10000; + } #endif /* USE_EXAMPLE_CODE */ return (unsigned int)ppm;