mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 18:52:46 +08:00
Correct MPU6/9k external detection
This commit is contained in:
@@ -377,7 +377,7 @@ private:
|
||||
bool is_external()
|
||||
{
|
||||
unsigned dummy;
|
||||
return !_interface->ioctl(ACCELIOCGEXTERNAL, dummy);
|
||||
return _interface->ioctl(ACCELIOCGEXTERNAL, dummy);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -482,7 +482,7 @@ private:
|
||||
bool is_external()
|
||||
{
|
||||
unsigned dummy;
|
||||
return !_interface->ioctl(ACCELIOCGEXTERNAL, dummy);
|
||||
return _interface->ioctl(ACCELIOCGEXTERNAL, dummy);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user