1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

Update initialisation.c (#348)

Changed behaviour of mag_detect when forced sensor is not present
New behaviour: continue with mag disabled
Closes #336
This commit is contained in:
André 2016-07-13 12:21:48 +02:00 committed by Konstantin Sharlaimov
parent 16e21dfec8
commit 49bfcd7bb8

View file

@ -734,8 +734,8 @@ retry:
if (magHardware == MAG_NONE && magHardwareToUse != MAG_DEFAULT && magHardwareToUse != MAG_NONE) {
// Nothing was found and we have a forced sensor that isn't present.
magHardwareToUse = MAG_DEFAULT;
goto retry;
magHardwareToUse = MAG_NONE;
return;
}
if (magHardware == MAG_NONE) {