mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Edge detection only on "Reset Flight", commit 6bc6e074e1
introduced unnecessary change in behavior for Reset Timer (fix #5036)
This commit is contained in:
parent
fb1098c16e
commit
a587f8b825
1 changed files with 25 additions and 25 deletions
|
@ -330,7 +330,6 @@ void evalFunctions()
|
|||
break;
|
||||
|
||||
case FUNC_RESET:
|
||||
if (!(functionsContext.activeSwitches & switch_mask)) {
|
||||
switch (CFN_PARAM(cfn)) {
|
||||
case FUNC_RESET_TIMER1:
|
||||
case FUNC_RESET_TIMER2:
|
||||
|
@ -340,11 +339,13 @@ void evalFunctions()
|
|||
timerReset(CFN_PARAM(cfn));
|
||||
break;
|
||||
case FUNC_RESET_FLIGHT:
|
||||
if (!(functionsContext.activeSwitches & switch_mask)) {
|
||||
#if defined(CPUARM)
|
||||
mainRequestFlags |= (1 << REQUEST_FLIGHT_RESET); // on systems with threads flightReset() must not be called from the mixers thread!
|
||||
#else
|
||||
flightReset();
|
||||
#endif // defined(CPUARM)
|
||||
}
|
||||
break;
|
||||
#if defined(TELEMETRY_FRSKY)
|
||||
case FUNC_RESET_TELEMETRY:
|
||||
|
@ -369,7 +370,6 @@ void evalFunctions()
|
|||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
#if defined(CPUARM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue