delete unused IOCTL ACCELIOCGSAMPLERATE

This commit is contained in:
Daniel Agar
2018-11-06 07:43:43 +08:00
committed by Lorenz Meier
parent f59f0d4b2d
commit 8ad59160c9
13 changed files with 2 additions and 39 deletions
+2 -3
View File
@@ -347,7 +347,6 @@ do_accel(int argc, char *argv[])
return 1;
}
int srate = ioctl(fd, ACCELIOCGSAMPLERATE, 0);
int prate = ioctl(fd, SENSORIOCGPOLLRATE, 0);
int range = ioctl(fd, ACCELIOCGRANGE, 0);
int id = ioctl(fd, DEVIOCGDEVICEID, 0);
@@ -355,8 +354,8 @@ do_accel(int argc, char *argv[])
param_get(param_find("CAL_ACC0_ID"), &(calibration_id));
PX4_INFO("accel: \n\tdevice id:\t0x%X\t(calibration is for device id 0x%X)\n\tsample rate:\t%d Hz\n\tread rate:\t%d Hz\n\trange:\t%d G",
id, calibration_id, srate, prate, range);
PX4_INFO("accel: \n\tdevice id:\t0x%X\t(calibration is for device id 0x%X)\n\tread rate:\t%d Hz\n\trange:\t%d G",
id, calibration_id, prate, range);
close(fd);
}