ms5611: prevent starting as ms5607 type on ms5611 hardware

- an ms5611 using the ms5607 calculations will return impossibly high barometric pressure (~2000 mbar)
This commit is contained in:
Daniel Agar
2020-06-01 11:31:55 -04:00
committed by GitHub
parent b139f48fef
commit b36845330e
+5
View File
@@ -107,6 +107,11 @@ MS5611::init()
/* This is likely not this device, abort */
ret = -EINVAL;
break;
} else if (brp.pressure > 1500.0f) {
/* This is likely not this device, abort */
ret = -EINVAL;
break;
}
}