mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Made sure airspeed tests reset the sensors to default state
This commit is contained in:
@@ -383,6 +383,10 @@ test()
|
||||
warnx("diff pressure: %d pa", report.differential_pressure_pa);
|
||||
}
|
||||
|
||||
/* reset the sensor polling to its default rate */
|
||||
if (OK != ioctl(fd, SENSORIOCSPOLLRATE, SENSOR_POLLRATE_DEFAULT))
|
||||
errx(1, "failed to set default rate");
|
||||
|
||||
errx(0, "PASS");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user