File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,13 @@ static int logicConditionCompute(
287
287
return true;
288
288
break ;
289
289
290
+ #ifdef USE_MAG
291
+ case LOGIC_CONDITION_RESET_MAG_CALIBRATION :
292
+
293
+ ENABLE_STATE (CALIBRATE_MAG );
294
+ return true;
295
+ break ;
296
+ #endif
290
297
case LOGIC_CONDITION_SET_VTX_POWER_LEVEL :
291
298
#if defined(USE_VTX_CONTROL )
292
299
#if (defined(USE_VTX_SMARTAUDIO ) || defined(USE_VTX_TRAMP ))
Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ typedef enum {
83
83
LOGIC_CONDITION_APPROX_EQUAL = 51 ,
84
84
LOGIC_CONDITION_LED_PIN_PWM = 52 ,
85
85
LOGIC_CONDITION_DISABLE_GPS_FIX = 53 ,
86
- LOGIC_CONDITION_LAST = 54 ,
86
+ LOGIC_CONDITION_RESET_MAG_CALIBRATION = 54 ,
87
+ LOGIC_CONDITION_LAST = 55 ,
87
88
} logicOperation_e ;
88
89
89
90
typedef enum logicOperandType_s {
You can’t perform that action at this time.
0 commit comments