Skip to content

Commit b703997

Browse files
committed
Fix lint.
1 parent cfbed6c commit b703997

4 files changed

Lines changed: 4 additions & 7 deletions

File tree

boardcfg/ethernet_sk2/app_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ extern "C" {
145145
*
146146
* If undefined, we use a 'dummy' sensor that generates random values.
147147
*/
148-
//#define RDM_RESPONDER_TEMPERATURE_SENSOR
148+
// #define RDM_RESPONDER_TEMPERATURE_SENSOR
149149

150150
/**
151151
* @}

boardcfg/number8/app_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ extern "C" {
145145
*
146146
* If undefined, we use a 'dummy' sensor that generates random values.
147147
*/
148-
//#define RDM_RESPONDER_TEMPERATURE_SENSOR
148+
// #define RDM_RESPONDER_TEMPERATURE_SENSOR
149149

150150
/**
151151
* @}

firmware/src/sensor_model.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static uint16_t GetSensorValue(unsigned int i) {
6565
RESPONDER_DEFINITION.sensors[i].range_maximum_value -
6666
RESPONDER_DEFINITION.sensors[i].range_minimum_value)) +
6767
RESPONDER_DEFINITION.sensors[i].range_minimum_value;
68-
};
68+
}
6969

7070
void SampleSensors() {
7171
g_sensor_model.sensor_sample_time = CoarseTimer_GetTime();

firmware/src/temperature.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "sys/attribs.h"
2525

2626
#include "coarse_timer.h"
27-
#include "syslog.h"
2827

2928
#include "app_settings.h"
3029

@@ -92,7 +91,7 @@ void Temperature_Init() {
9291
ADC_ID_1, ADC_CLOCK_SOURCE_SYSTEM_CLOCK);
9392
PLIB_ADC_SampleAcquisitionTimeSet(ADC_ID_1, 0x1f); // 31 x Tad
9493

95-
//AD1CON2 = 0; // VDD & VSS, no scan, mux A
94+
// AD1CON2 = 0; // VDD & VSS, no scan, mux A
9695
PLIB_ADC_MuxAInputScanDisable(ADC_ID_1);
9796
PLIB_ADC_SamplesPerInterruptSelect(ADC_ID_1, ADC_1SAMPLE_PER_INTERRUPT);
9897

@@ -124,8 +123,6 @@ void Temperature_Tasks() {
124123
g_adc_data.new_sample = false;
125124
g_adc_data.temperature = CONVERSION_MULTIPLIER * g_adc_data.sample_value +
126125
CONVERSION_OFFSET;
127-
SysLog_Print(SYSLOG_INFO, "%d %d", g_adc_data.sample_value,
128-
g_adc_data.temperature);
129126
}
130127
#endif
131128
}

0 commit comments

Comments
 (0)