mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 18:41:36 +08:00
HMC driver: Device ID should come from the main instance, not the interface
This commit is contained in:
@@ -762,9 +762,6 @@ HMC5883::ioctl(struct file *filp, int cmd, unsigned long arg)
|
|||||||
case MAGIOCSTEMPCOMP:
|
case MAGIOCSTEMPCOMP:
|
||||||
return set_temperature_compensation(arg);
|
return set_temperature_compensation(arg);
|
||||||
|
|
||||||
case DEVIOCGDEVICEID:
|
|
||||||
return _interface->ioctl(cmd, dummy);
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* give it to the superclass */
|
/* give it to the superclass */
|
||||||
return CDev::ioctl(filp, cmd, arg);
|
return CDev::ioctl(filp, cmd, arg);
|
||||||
|
|||||||
Reference in New Issue
Block a user