edgetx icon indicating copy to clipboard operation
edgetx copied to clipboard

With LUA's, the color name TEXT_COLOR is acknowledged with an error.

Open koaxheli opened this issue 8 months ago • 2 comments

Is there an existing issue for this problem?

  • [x] I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

After today's update for all LUA's where the color

Image

name TEXT_COLOR appears, the script goes to error.

Expected Behavior

If I go back to the previous version everything is OK.

Image

Steps To Reproduce

With the new version 3.0.0 selbuild (54a6fb5e) error when calling LUA.

Version

2.11.0

Transmitter

RadioMaster TX16S / TX16SMK2

Operating System (OS)

Windows

OS Version

No response

Anything else?

No response

koaxheli avatar May 07 '25 13:05 koaxheli

If you check the documentation you can see that TEXT_COLOR has been deprecated in favor of COLOR_THEME_SECONDARY1.

As a quick fix I think you could always define TEXT_COLOR as the value of COLOR_THEME_SECONDARY1 in your script.

pagrey avatar May 07 '25 14:05 pagrey

Hello a good tip, have the affected LUA scripts on local TEXT_COLOR = COLOR_THEME_SECONDARY1 changed.

Thanks again

koaxheli avatar May 07 '25 16:05 koaxheli