Browse Source

Update 'Teensy4.1_Datalogger new.ino'

master
Julian Graf 1 year ago
parent
commit
084643a678
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Teensy4.1_Datalogger new.ino

+ 3
- 3
Teensy4.1_Datalogger new.ino View File

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

Loading…
Cancel
Save