Skip to content

elrsV3.lua: added editing of parameter type string #2995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: 3.x.x-maintenance
Choose a base branch
from

Conversation

wimalopaan
Copy link

First try to fix #2859

@pkendall64
Copy link
Collaborator

We already have issues with Lua space problems on some radios and this is just going to push them over the edge.

@wimalopaan
Copy link
Author

Maybe it would be a solution to detect the radio type and use the gc to remove unused functions?

lcd.drawText(COL2, y, field.value, attr)
if (bit32.band(attr, BLINK) > 0) then -- editing
local s1 = string.sub(field.value, 1, subFieldIndex - 1)
local w1 = lcd.sizeText(s1)
Copy link

@j-venegas j-venegas Apr 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to change lcd.sizeText() for lcd.getLastPos() to get the script working on my bw radio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants