mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
AP_Compass: Removed duplicate code
This commit is contained in:
parent
631d4a1152
commit
9eca21c26a
@ -736,11 +736,6 @@ bool Compass::configured(uint8_t i)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// exit immediately if all offsets (mG) are zero
|
|
||||||
if (is_zero(get_offsets(i).length())) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// backup detected dev_id
|
// backup detected dev_id
|
||||||
int32_t dev_id_orig = _state[i].dev_id;
|
int32_t dev_id_orig = _state[i].dev_id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user