From 084643a678c16a64c9cb370ffcaa5855f342a8fb Mon Sep 17 00:00:00 2001 From: Julian Graf Date: Thu, 1 Sep 2022 07:34:01 +0000 Subject: [PATCH] Update 'Teensy4.1_Datalogger new.ino' --- Teensy4.1_Datalogger new.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Teensy4.1_Datalogger new.ino b/Teensy4.1_Datalogger new.ino index 35ae16e..8c16e0d 100644 --- a/Teensy4.1_Datalogger new.ino +++ b/Teensy4.1_Datalogger new.ino @@ -186,7 +186,7 @@ public: } void file_print() { - printf("Temperatur: %f.2 °C\n", Temp); + printf("Temperatur: %.2f °C\n", Temp); } } temp_sensor_1; @@ -194,7 +194,7 @@ struct wind_vain { private: float wind_sec; float wind_summ = 0; - int values[60]; + float values[60]; int saved_minutes = 0; int saved_seconds = 0; @@ -214,7 +214,7 @@ public: } void file_print() { for (int i = 0; i < saved_minutes; i++) { - printf("Windrichtung in ° Winkel: %f.2\n", values[i]); + printf("Windrichtung in ° Winkel: %.2f\n", values[i]); } saved_minutes = 0; }