|
|
|
@ -56,9 +56,11 @@
|
|
|
|
|
// *************************************************************************************************
|
|
|
|
|
// Prototypes section
|
|
|
|
|
u8 is_temp_measurement(void); |
|
|
|
|
|
|
|
|
|
#ifndef CONFIG_METRIC_ONLY |
|
|
|
|
s16 convert_C_to_F(s16 value); |
|
|
|
|
s16 convert_F_to_C(s16 value); |
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// *************************************************************************************************
|
|
|
|
|
// Defines section
|
|
|
|
@ -136,7 +138,7 @@ void temperature_measurement(u8 filter)
|
|
|
|
|
// @param s16 value Temperature in °C
|
|
|
|
|
// @return s16 Temperature in °F
|
|
|
|
|
// *************************************************************************************************
|
|
|
|
|
#ifdef CONFIG_METRIC_ONLY |
|
|
|
|
#ifndef CONFIG_METRIC_ONLY |
|
|
|
|
s16 convert_C_to_F(s16 value) |
|
|
|
|
{ |
|
|
|
|
s16 DegF; |
|
|
|
|