comparison Discovery/Inc/unit.h @ 653:269e57ac4e56

Bugfix temperature display Logpage2: Temperature was shown in Centidegrees (Fahrenheit as well as Celsius). Root cause was that conversion was done via character cutting (string: removal of last digit). This has been replaced by a factor 10 devision.
author Ideenmodellierer
date Sun, 25 Apr 2021 20:36:18 +0200
parents 1c95f811967c
children
comparison
equal deleted inserted replaced
652:f6212495f34f 653:269e57ac4e56
44 44
45 /* Exported functions --------------------------------------------------------*/ 45 /* Exported functions --------------------------------------------------------*/
46 float unit_depth_float(float input_meter); 46 float unit_depth_float(float input_meter);
47 uint16_t unit_depth_integer(uint16_t input_meter); 47 uint16_t unit_depth_integer(uint16_t input_meter);
48 float unit_temperature_float(float input_celsius); 48 float unit_temperature_float(float input_celsius);
49 uint16_t unit_temperature_integer(uint16_t input_celsius); 49 int16_t unit_temperature_integer(int16_t input_celsius);
50 uint16_t unit_speed_integer(uint16_t input_meterPerMinute); 50 uint16_t unit_speed_integer(uint16_t input_meterPerMinute);
51 int unit_SeaLevelRelation_integer(int input_atmospheric_mbar); 51 int unit_SeaLevelRelation_integer(int input_atmospheric_mbar);
52 char unit_depth_char1(void); 52 char unit_depth_char1(void);
53 char unit_depth_char2(void); 53 char unit_depth_char2(void);
54 char unit_depth_char1_T105(void); 54 char unit_depth_char1_T105(void);