delete unused IOCTL GYROIOCSSAMPLERATE

This commit is contained in:
Daniel Agar
2018-11-03 15:09:37 -04:00
committed by Lorenz Meier
parent 60c14fe8f1
commit 3daf37433e
11 changed files with 1 additions and 46 deletions
+1 -11
View File
@@ -178,17 +178,7 @@ do_gyro(int argc, char *argv[])
int ret;
if (argc == 3 && !strcmp(argv[0], "sampling")) {
/* set the gyro internal sampling rate up to at least i Hz */
ret = ioctl(fd, GYROIOCSSAMPLERATE, strtoul(argv[2], NULL, 0));
if (ret) {
PX4_ERR("sampling rate could not be set");
return 1;
}
} else if (argc == 3 && !strcmp(argv[0], "rate")) {
if (argc == 3 && !strcmp(argv[0], "rate")) {
/* set the driver to poll at i Hz */
ret = ioctl(fd, SENSORIOCSPOLLRATE, strtoul(argv[2], NULL, 0));