diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-06 09:54:14 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-06 09:54:14 +0200 |
commit | 0012b39b372104a782596d734d03c7155f4a6e01 (patch) | |
tree | 1c55428335082b34e878016fd4f1bca9e4f393a7 /src/drivers/meas_airspeed/meas_airspeed.cpp | |
parent | 629f4bfb56cf8e71556f1465cb75cd1215d8cced (diff) | |
parent | 28fa96e2db8fcf91fa8bb5cb0095b08306985402 (diff) | |
download | px4-firmware-0012b39b372104a782596d734d03c7155f4a6e01.tar.gz px4-firmware-0012b39b372104a782596d734d03c7155f4a6e01.tar.bz2 px4-firmware-0012b39b372104a782596d734d03c7155f4a6e01.zip |
Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup
Diffstat (limited to 'src/drivers/meas_airspeed/meas_airspeed.cpp')
-rw-r--r-- | src/drivers/meas_airspeed/meas_airspeed.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/meas_airspeed/meas_airspeed.cpp b/src/drivers/meas_airspeed/meas_airspeed.cpp index 3dc6159ef..666bd30e6 100644 --- a/src/drivers/meas_airspeed/meas_airspeed.cpp +++ b/src/drivers/meas_airspeed/meas_airspeed.cpp @@ -415,6 +415,10 @@ test() warnx("temperature: %d C (0x%02x)", (int)report.temperature, (unsigned) report.temperature); } + /* 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"); } |