|
|
@@ -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; |
|
|
|
} |