mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 02:17:07 +08:00
lps25h_spi.cpp: remove MAGIOCGEXTERNAL ioctl
Because it's a baro driver, not a mag.
This commit is contained in:
@@ -135,14 +135,6 @@ LPS25H_SPI::ioctl(unsigned operation, unsigned &arg)
|
||||
|
||||
switch (operation) {
|
||||
|
||||
case MAGIOCGEXTERNAL:
|
||||
/*
|
||||
* Even if this sensor is on the external SPI
|
||||
* bus it is still internal to the autopilot
|
||||
* assembly, so always return 0 for internal.
|
||||
*/
|
||||
return 0;
|
||||
|
||||
case DEVIOCGDEVICEID:
|
||||
return CDev::ioctl(nullptr, operation, arg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user