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:
parent
16e21dfec8
commit
49bfcd7bb8
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue