1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 19:40:27 +03:00

Update logic_condition.c

Added activation of the compass calibration request
This commit is contained in:
Stefano Della Valle 2023-10-25 19:28:54 +02:00 committed by GitHub
parent 05a93edb6f
commit 85217c24c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,6 +286,13 @@ static int logicConditionCompute(
return true; return true;
break; break;
#ifdef USE_MAG
case LOGIC_CONDITION_RESET_MAG_CALIBRATION:
ENABLE_STATE(CALIBRATE_MAG);
return true;
break;
#endif
case LOGIC_CONDITION_SET_VTX_POWER_LEVEL: case LOGIC_CONDITION_SET_VTX_POWER_LEVEL:
#if defined(USE_VTX_CONTROL) #if defined(USE_VTX_CONTROL)
#if(defined(USE_VTX_SMARTAUDIO) || defined(USE_VTX_TRAMP)) #if(defined(USE_VTX_SMARTAUDIO) || defined(USE_VTX_TRAMP))