* fixes the non-terminated fixed-string problem in lua-mixer-script
added some useful info to the script-line
make the popup menu to delete a script
* removed unneccessary comments
* intermediate fix
* tried to obey all comments to the code
and to eliminate further potential buffer-overflows
* fixed typo
* fixed async loading of lua scripts and update of widget
cleanup
* removed GCC pragmas (clang warn about them)
remove constexpr qualification (gcc accepts them because gcc-builtins are already constexpr, clang still warns about them)
* removed merge marker
* transferred respective OpenTX updates to HoTT telemetry
* integrated LUA function flushAudio from OpenTx
* sensor names moved to “untranslated.h”
reverted *.h.txt to original mainline content
removed leading "Z" in sensor name defines
* The set/reset switches for a logical switch are only processed if the are valid.
* Revert "The set/reset switches for a logical switch are only processed if the are valid."
This reverts commit c238108415aec39f64ba6bae4c86cfb3ea4713bc.
* fix handling of default values in mixer scripts
* revised the use of default value to be consistent to the past usage
* Limited autoformatting
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
`getfieldInfo` can now also take a source index as argument. Plus it was modified to also handle "telem1+" etc.
New functions `getSourceIndex(sourceName)` and `getSourceName(sourceIndex)` were added, which use the names shown on the
screen instead of the special names table used by `getFieldInfo` and `getValue`.
Indices are the same for all of the functions, so `getValue(sourceIndex)` also works with indices from `getSourceIndex`.
New iterator functions `sources([first[, last]])` and `switches([first[, last]])` for getting ranges of sources and switches.
`getPhysicalSwitches` was removed, as I consider the iterator function to be a better solution.
[Lua] Add setStickySwitch and getLogicalSwitchValue (#1056)
* Adds setStickySwitch to set the value of a stick logical switch
* Adds getLogicalSwitchValue to get the value of a logical switch by index
* Add filename to lua `model.getInfo()`
* Make `getModelNumberStr()` globally available
* Move variable extern
* Move constexpr to header, remove externs
* Perhaps .cpp should include its OWN header