mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 12:43:35 +08:00
delete IOCTL SENSOR_POLLRATE_MANUAL
- only used in self tests
This commit is contained in:
committed by
Lorenz Meier
parent
8dfd55fc9e
commit
556a9422b5
@@ -233,14 +233,9 @@ test(bool external_bus, enum sensor_type sensor)
|
||||
/* get the accel driver */
|
||||
int fd_acc = open(path_accel, O_RDONLY);
|
||||
|
||||
if (fd_acc < 0)
|
||||
if (fd_acc < 0) {
|
||||
err(1, "%s Accel file open failed (try 'bmi055 -A start')",
|
||||
path_accel);
|
||||
|
||||
|
||||
/* reset to manual polling */
|
||||
if (ioctl(fd_acc, SENSORIOCSPOLLRATE, SENSOR_POLLRATE_MANUAL) < 0) {
|
||||
err(1, "accel reset to manual polling");
|
||||
}
|
||||
|
||||
/* do a simple demand read */
|
||||
@@ -270,11 +265,6 @@ test(bool external_bus, enum sensor_type sensor)
|
||||
err(1, "%s Gyro file open failed (try 'bmi055 -G start')", path_gyro);
|
||||
}
|
||||
|
||||
/* reset to manual polling */
|
||||
if (ioctl(fd_gyr, SENSORIOCSPOLLRATE, SENSOR_POLLRATE_MANUAL) < 0) {
|
||||
err(1, "gyro reset to manual polling");
|
||||
}
|
||||
|
||||
/* do a simple demand read */
|
||||
sz = read(fd_gyr, &g_report, sizeof(g_report));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user