fix typos 31/198931/1 master
authorJeonghoon Park <jh1979.park@samsung.com>
Thu, 31 Jan 2019 06:19:23 +0000 (15:19 +0900)
committerJeonghoon Park <jh1979.park@samsung.com>
Thu, 31 Jan 2019 06:20:18 +0000 (15:20 +0900)
Change-Id: I2912e0944dd22a0efb1178dbfe7f10aaa23fa56c

inc/co2-sensor.h
inc/log.h
inc/sensor-data.h
src/adc-mcp3008.c

index d3b2b39..ac44cb3 100644 (file)
   */
 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);
index 416b5db..4ed451c 100644 (file)
--- 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>
 
index f486551..053bf9d 100644 (file)
@@ -17,7 +17,7 @@
  ******************************************************************/
 
 #ifndef __SENSOR_DATA_H__
-#define  __SENSOR_DATA_H__
+#define __SENSOR_DATA_H__
 
 #include <stdbool.h>
 
index 40abf76..f1a7c75 100644 (file)
@@ -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;