Edge detection only on "Reset Flight", commit 6bc6e074e17e28138fcb23b1e6a3e91eef0b406a introduced unnecessary change in behavior for Reset Timer (fix #5036)
This commit is contained in:
@@ -330,7 +330,6 @@ void evalFunctions()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case FUNC_RESET:
|
case FUNC_RESET:
|
||||||
if (!(functionsContext.activeSwitches & switch_mask)) {
|
|
||||||
switch (CFN_PARAM(cfn)) {
|
switch (CFN_PARAM(cfn)) {
|
||||||
case FUNC_RESET_TIMER1:
|
case FUNC_RESET_TIMER1:
|
||||||
case FUNC_RESET_TIMER2:
|
case FUNC_RESET_TIMER2:
|
||||||
@@ -340,11 +339,13 @@ void evalFunctions()
|
|||||||
timerReset(CFN_PARAM(cfn));
|
timerReset(CFN_PARAM(cfn));
|
||||||
break;
|
break;
|
||||||
case FUNC_RESET_FLIGHT:
|
case FUNC_RESET_FLIGHT:
|
||||||
|
if (!(functionsContext.activeSwitches & switch_mask)) {
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
mainRequestFlags |= (1 << REQUEST_FLIGHT_RESET); // on systems with threads flightReset() must not be called from the mixers thread!
|
mainRequestFlags |= (1 << REQUEST_FLIGHT_RESET); // on systems with threads flightReset() must not be called from the mixers thread!
|
||||||
#else
|
#else
|
||||||
flightReset();
|
flightReset();
|
||||||
#endif // defined(CPUARM)
|
#endif // defined(CPUARM)
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#if defined(TELEMETRY_FRSKY)
|
#if defined(TELEMETRY_FRSKY)
|
||||||
case FUNC_RESET_TELEMETRY:
|
case FUNC_RESET_TELEMETRY:
|
||||||
@@ -369,7 +370,6 @@ void evalFunctions()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
|
|||||||
Reference in New Issue
Block a user