From b058aa2b09c4635199b21351ce18f389a3ea2b06 Mon Sep 17 00:00:00 2001 From: Jeonghoon Park Date: Thu, 31 Jan 2019 15:19:23 +0900 Subject: [PATCH] fix typos Change-Id: I2912e0944dd22a0efb1178dbfe7f10aaa23fa56c --- inc/co2-sensor.h | 6 +++--- inc/log.h | 2 +- inc/sensor-data.h | 2 +- src/adc-mcp3008.c | 2 -- 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 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 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; -- 2.7.4