AP_Periph: fix checking compass available before init

This commit is contained in:
bugobliterator 2021-08-10 15:48:26 +05:30 committed by Peter Barker
parent fadadfb50e
commit 1d81eb5c47
1 changed files with 1 additions and 3 deletions

View File

@ -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