Skip to content

Commit

Permalink
fix(temperature):rename variable name
Browse files Browse the repository at this point in the history
-ui8TemperatureCelsius -> fTemperatureCelsius
  • Loading branch information
abdullahbagyapan committed Apr 19, 2024
1 parent 5ca211a commit eede263
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions temperature/temperature.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ void TEMPERATURE_Init(void) {

float TEMPERATURE_Read(void) {

float ui8TemperatureCelsius;
float fTemperatureCelsius;

uint16_t ui16ADC_voltage = adc_read();

ui8TemperatureCelsius = TEMPERATURE_Calculate(ui16ADC_voltage);
fTemperatureCelsius = TEMPERATURE_Calculate(ui16ADC_voltage);

return ui8TemperatureCelsius;
return fTemperatureCelsius;
}

0 comments on commit eede263

Please sign in to comment.