mirror of https://github.com/ArduPilot/ardupilot
AP_Periph: fix checking compass available before init
This commit is contained in:
parent
fadadfb50e
commit
1d81eb5c47
|
@ -151,9 +151,7 @@ void AP_Periph_FW::init()
|
|||
#endif
|
||||
|
||||
#ifdef HAL_PERIPH_ENABLE_MAG
|
||||
if (compass.available()) {
|
||||
compass.init();
|
||||
}
|
||||
compass.init();
|
||||
#endif
|
||||
|
||||
#ifdef HAL_PERIPH_ENABLE_BARO
|
||||
|
|
Loading…
Reference in New Issue