summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeonghoon Park <jh1979.park@samsung.com>2019-01-31 15:19:23 +0900
committerJeonghoon Park <jh1979.park@samsung.com>2019-01-31 15:20:18 +0900
commitb058aa2b09c4635199b21351ce18f389a3ea2b06 (patch)
tree0e1af1c2756c1700503e1dbf7847b62de6d9795f
parentbd4f3f524608fe791910a46d01df7f14d70a15aa (diff)
downloadst-things-co2-meter-master.tar.gz
st-things-co2-meter-master.tar.bz2
st-things-co2-meter-master.zip
fix typosHEADmaster
Change-Id: I2912e0944dd22a0efb1178dbfe7f10aaa23fa56c
-rw-r--r--inc/co2-sensor.h6
-rw-r--r--inc/log.h2
-rw-r--r--inc/sensor-data.h2
-rw-r--r--src/adc-mcp3008.c2
4 files changed, 5 insertions, 7 deletions
diff --git a/inc/co2-sensor.h b/inc/co2-sensor.h
index d3b2b39..ac44cb3 100644
--- a/inc/co2-sensor.h
+++ b/inc/co2-sensor.h
@@ -28,14 +28,14 @@
*/
int co2_sensor_read(int ch_num, unsigned int *out_value);
-/* release resource */
+/* release co2 sensor resource */
void co2_sensor_close(void);
-/* utility functions */
+/* utility function : convert adc value(from MCP3008) to voltage */
double co2_sensor_value_to_voltage(unsigned int value);
-/* Fallowing functions art Not implemented, please see comments in c source code */
+/* Following functions are Not implemented, please see comments in c source code */
int co2_sensor_set_calibration_values(unsigned int zero_point_v,
unsigned int second_point_ppm, unsigned int second_point_v);
unsigned int co2_sensor_voltage_to_ppm(double voltage);
diff --git a/inc/log.h b/inc/log.h
index 416b5db..4ed451c 100644
--- a/inc/log.h
+++ b/inc/log.h
@@ -16,7 +16,7 @@
*
******************************************************************/
#ifndef __CO2_LOG_H__
-#define __CO2_LOG_H__
+#define __CO2_LOG_H__
#include <dlog.h>
diff --git a/inc/sensor-data.h b/inc/sensor-data.h
index f486551..053bf9d 100644
--- a/inc/sensor-data.h
+++ b/inc/sensor-data.h
@@ -17,7 +17,7 @@
******************************************************************/
#ifndef __SENSOR_DATA_H__
-#define __SENSOR_DATA_H__
+#define __SENSOR_DATA_H__
#include <stdbool.h>
diff --git a/src/adc-mcp3008.c b/src/adc-mcp3008.c
index 40abf76..f1a7c75 100644
--- a/src/adc-mcp3008.c
+++ b/src/adc-mcp3008.c
@@ -181,8 +181,6 @@ int adc_mcp3008_read(int ch_num, unsigned int *out_value)
result = ((rx_w2 << 8) | (rx_w3)) & UINT10_VALIDATION_MASK;
- // _D("%hu", result);
-
*out_value = result;
return 0;