mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
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
Block a user