When I run the luac integration file the first time, everything works great.
But if I exit and then try to re-run the script, I get: "script syntax error - not enough memory."
If I turn the radio off and on again, then it works again.
So it seems the script can only be run once, then the radio has to be turned off and then on again to run the script again. Is this normal?
There are no other scripts running.
Radio: FrSky QX7S, ACCST D16 v2.1.0
Receiver: RX4R, FW-RX4R-RX6R-v2.1.1
OpenTX: v2.3.11
Integration file: BRAIN2.luac for Taranis v 24/12/2019
Update 03/26/2021:
Checked the memory before and after running the script:
Before: 78504b
After: Only 16b!, completely full for all practical purposes
It appears that memory is not cleared after running and exiting the script. Restarting the radio clears the memory and then the script can be run again.
Based on your "Update", there seems to be a serious problem with the release of RAM in newer versions of OpenTX 2.3.11 for QX7 that will need to be reported by FrSky cutomer / users to FrSky.
As stated in the endnotes of our manual, we have developed, tested and released integrations using an earlier version of OpenTx and have not experienced this RAM issue.
We can check this ourselves and if necessary report the problem to FrSky, but a single report from us will certainly have less priority than hundreds of reports from FrSky users/customers.