XxRsetv2.zip removed.
I've changed the V5 to V6 in the title and updated the .zip file in the first post. erskyTx doesn't use the title.
While many lines have changed, there are 3 main changes:
1. Set value variables to -1 to indicate they have not been read, rather than use a separate variable.
2. Add the function displayOption, this was intended to save memory.
3. Change the order of the options to make it easier to only display options that are specific to a particular receiver.
I tested using a X9LiteS and a X10S express.
I haven't used LUA much so I'm learning it. Trying to make it use less memory is not obvious, some changes I tried made it use more.
I've been trying to get the script to use less memory as there isn't much spare on some radios. With erskyTx, and openTx the X9Lite has 79K available, and uses 70K when it needs to compile the script. The X9D plus (with erskyTx) only has 71K and has only 2K spare when compiling.
However, if the LUAC file is available, and either both are on the Tx (same data and time) or the LUAC file only is present (possibly renamed to .LUA) then this runs using much less memory (only 24K).
I haven't looked at the Ethos scripts regarding adding the FBUS option.
Mike