delete IOCTL SENSOR_POLLRATE_MANUAL

- only used in self tests
This commit is contained in:
Daniel Agar
2018-11-06 07:43:43 +08:00
committed by Lorenz Meier
parent 8dfd55fc9e
commit 556a9422b5
42 changed files with 3 additions and 299 deletions
+1 -11
View File
@@ -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));