mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 23:35:17 +03:00
Revert "[Horus] Fixes #3770 - needs tests"
This reverts commit f131c79b87
.
This commit is contained in:
parent
35ebe455c0
commit
0d12832d30
1 changed files with 2 additions and 3 deletions
|
@ -230,11 +230,10 @@ bool isRepeatDelayElapsed(const CustomFunctionData * functions, CustomFunctionsC
|
||||||
const CustomFunctionData * cfn = &functions[index];
|
const CustomFunctionData * cfn = &functions[index];
|
||||||
tmr10ms_t tmr10ms = get_tmr10ms();
|
tmr10ms_t tmr10ms = get_tmr10ms();
|
||||||
uint8_t repeatParam = CFN_PLAY_REPEAT(cfn);
|
uint8_t repeatParam = CFN_PLAY_REPEAT(cfn);
|
||||||
if (repeatParam == CFN_PLAY_REPEAT_NOSTART && !IS_SILENCE_PERIOD_ELAPSED()) {
|
if (!IS_SILENCE_PERIOD_ELAPSED() && repeatParam == CFN_PLAY_REPEAT_NOSTART) {
|
||||||
functionsContext.lastFunctionTime[index] = tmr10ms;
|
functionsContext.lastFunctionTime[index] = tmr10ms;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
else if (!functionsContext.lastFunctionTime[index] || (repeatParam!=CFN_PLAY_REPEAT_NOSTART && (signed)(tmr10ms-functionsContext.lastFunctionTime[index])>=100*repeatParam)) {
|
if (!functionsContext.lastFunctionTime[index] || (repeatParam && repeatParam!=CFN_PLAY_REPEAT_NOSTART && (signed)(tmr10ms-functionsContext.lastFunctionTime[index])>=100*repeatParam)) {
|
||||||
functionsContext.lastFunctionTime[index] = tmr10ms;
|
functionsContext.lastFunctionTime[index] = tmr10ms;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue