LUA script crashes X9D+

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
CoJaW
Posts: 4
Joined: Sat Aug 17, 2019 8:02 am
Country: -

LUA script crashes X9D+

Post by CoJaW »

Currently using X9D+ running v2.2.4
I've written a naive LUA script to show RSSI level using a bar display.
When I use 'lcd.drawFilledRectangle' or 'lcd.drawGauge' with a variable as a parameter, the LUA script works in Companion but freezes the display on the X9D+. The Tx still operates but the display remains frozen. If the X9D+ is then switched off there is a long delay before it actually switches off.

Has anyone else had a similar experience or can anyone suggest what might be going wrong?

Thanks!

User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: LUA script crashes X9D+

Post by Kilrah »

Make sure you're not writing outside of the display area.
CoJaW
Posts: 4
Joined: Sat Aug 17, 2019 8:02 am
Country: -

Re: LUA script crashes X9D+

Post by CoJaW »

Thanks for the quick response!
The LUA script works properly in Companion but not on the X9D+ so I don't think I've tried to draw outside of the display area.

Post Reply

Return to “openTx”