delete unused SENSORIOCCALTEST

This commit is contained in:
Daniel Agar 2017-12-13 20:35:27 -05:00
parent 4980b93830
commit 344cf83549
2 changed files with 1 additions and 11 deletions

View File

@ -147,9 +147,4 @@
*/
#define SENSORIOCRESET _SENSORIOC(4)
/**
* Test the sensor calibration
*/
#define SENSORIOCCALTEST _SENSORIOC(7)
#endif /* _DRV_SENSOR_H */

View File

@ -80,12 +80,7 @@ namespace Preflight
static int check_calibration(DevHandle &h, const char *param_template, int &devid)
{
bool calibration_found;
/* new style: ask device for calibration state */
int ret = h.ioctl(SENSORIOCCALTEST, 0);
calibration_found = (ret == OK);
bool calibration_found = false;
devid = h.ioctl(DEVIOCGDEVICEID, 0);