mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Reset SF can now reset individual telemetry items (fix #161)
This commit is contained in:
parent
51500d4455
commit
aced02f2bb
5 changed files with 48 additions and 8 deletions
|
@ -41,6 +41,7 @@ CustomFunctionsContext modelFunctionsContext = { 0 };
|
|||
|
||||
#if defined(CPUARM)
|
||||
CustomFunctionsContext globalFunctionsContext = { 0 };
|
||||
extern TelemetryItem telemetryItems[];
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -355,6 +356,12 @@ void evalFunctions()
|
|||
break;
|
||||
#endif
|
||||
}
|
||||
#if defined(CPUARM)
|
||||
if (CFN_PARAM(cfn)>=FUNC_RESET_PARAM_FIRST_TELEM) {
|
||||
TelemetryItem * telemetryItem = & telemetryItems[CFN_PARAM(cfn)-FUNC_RESET_PARAM_FIRST_TELEM];
|
||||
telemetryItem->clear();
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
||||
#if defined(CPUARM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue