diff options
-rw-r--r-- | inc/co2-sensor.h | 6 | ||||
-rw-r--r-- | inc/log.h | 2 | ||||
-rw-r--r-- | inc/sensor-data.h | 2 | ||||
-rw-r--r-- | 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); @@ -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; |