fix for temperature rounding

pull/13/head
Farkas Szilárd 2020-04-19 11:11:31 +02:00
rodzic a0ba7ad4a3
commit d7e096ea87
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -105,7 +105,7 @@ class MS5611
TEMP -= dT2;
OFF -= OFF2;
SENS -= SENS2; }
Temperature = TEMP; // [0.1degC]
Temperature = (TEMP+5)/10; // [0.1degC]
Pressure = (((SENS*RawPress)>>21) - OFF)>>13; } // [0.25Pa]
} ;