m20: pressure plausibility check

test
Zilog80 2023-12-10 19:14:13 +01:00
rodzic 4554dd998c
commit 0ab4c6fd49
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -724,6 +724,9 @@ static float get_P(gpx_t *gpx) {
if (val > 0) {
hPa = val/(float)(16*256); // 4096=0x1000
}
if (hPa > 2560.0f) { // val > 0xA00000
hPa = -1.0f;
}
return hPa;
}