mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 12:53:33 +08:00
delete unused IOCTL MAGIOCSSAMPLERATE
This commit is contained in:
committed by
Lorenz Meier
parent
04972d196a
commit
60a40ec131
@@ -659,10 +659,6 @@ ACCELSIM::mag_ioctl(unsigned long cmd, unsigned long arg)
|
||||
// Nothing to do for simulator
|
||||
return OK;
|
||||
|
||||
case MAGIOCSSAMPLERATE:
|
||||
// No need to set internal sampling rate for simulator
|
||||
return OK;
|
||||
|
||||
case MAGIOCGSAMPLERATE:
|
||||
return _mag_samplerate;
|
||||
|
||||
|
||||
@@ -118,10 +118,6 @@ int UavcanMagnetometerBridge::ioctl(struct file *filp, int cmd, unsigned long ar
|
||||
return 1; // declare it external rise it's priority and to allow for correct orientation compensation
|
||||
}
|
||||
|
||||
case MAGIOCSSAMPLERATE: {
|
||||
return 0; // Pretend that this stuff is supported to keep the sensor app happy
|
||||
}
|
||||
|
||||
case MAGIOCCALIBRATE:
|
||||
case MAGIOCGSAMPLERATE:
|
||||
case MAGIOCSRANGE:
|
||||
|
||||
Reference in New Issue
Block a user