mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -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;
|
||||
}
|
||||
|
||||
// exit immediately if all offsets (mG) are zero
|
||||
if (is_zero(get_offsets(i).length())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// backup detected dev_id
|
||||
int32_t dev_id_orig = _state[i].dev_id;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user