diff 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
line wrap: on
line diff
--- a/Discovery/Inc/unit.h	Mon Apr 19 20:34:53 2021 +0200
+++ b/Discovery/Inc/unit.h	Sun Apr 25 20:36:18 2021 +0200
@@ -46,7 +46,7 @@
 float unit_depth_float(float input_meter);
 uint16_t unit_depth_integer(uint16_t input_meter);
 float unit_temperature_float(float input_celsius);
-uint16_t unit_temperature_integer(uint16_t input_celsius);
+int16_t unit_temperature_integer(int16_t input_celsius);
 uint16_t unit_speed_integer(uint16_t input_meterPerMinute);
 int unit_SeaLevelRelation_integer(int input_atmospheric_mbar);
 char unit_depth_char1(void);