Update XCTRACK_VARIO_MS5611.ino

put readprom() in setup section : it only have to be read once
pull/8/head
dam74 2020-08-27 06:03:19 +02:00 zatwierdzone przez GitHub
rodzic 3941e9cc9a
commit 7d84faab00
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -93,6 +93,7 @@ void setup() {
#endif
delay(1200); //for watchdog timeout
}
sensor.ReadProm(); //takes about 3ms
}
uint32_t get_time = millis();
@ -102,7 +103,6 @@ uint8_t n = 0;
void loop(void) {
wdt_reset();
sensor.ReadProm(); //takes about 3ms
sensor.Readout(); // with OSR4096 takes about 10ms
uint32_t Pressure = sensor.GetPres();
sum += Pressure;