mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 11:29:51 +03:00
* Fixes #4438: wrong cast used when setting Lua mixer script input source Improved parsing of Lua mixer script inputs * Additional type check * ScriptDataInput union introduced. Fixed: when using SOURCE input, do not use default value Fixed: when using SOURCE input, min-max range is fixed
This commit is contained in:
parent
177acb95e5
commit
f36d01d560
7 changed files with 65 additions and 35 deletions
|
@ -453,10 +453,15 @@ PACK(struct SwashRingData {
|
|||
#endif
|
||||
|
||||
#if MAX_SCRIPTS > 0
|
||||
union ScriptDataInput {
|
||||
int16_t value;
|
||||
source_t source;
|
||||
};
|
||||
|
||||
PACK(struct ScriptData {
|
||||
char file[LEN_SCRIPT_FILENAME];
|
||||
char name[LEN_SCRIPT_NAME];
|
||||
int16_t inputs[MAX_SCRIPT_INPUTS];
|
||||
char file[LEN_SCRIPT_FILENAME];
|
||||
char name[LEN_SCRIPT_NAME];
|
||||
ScriptDataInput inputs[MAX_SCRIPT_INPUTS];
|
||||
});
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue