Skip to content
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

(issue can be closed) Lua: model.getTimer and model.setTimer are not updated to datastructure of 2.10.4 #5572

Open
1 task done
ChrisOhara57 opened this issue Sep 29, 2024 · 1 comment
Labels
bug 🪲 Something isn't working triage Bug report awaiting review / sorting

Comments

@ChrisOhara57
Copy link

ChrisOhara57 commented Sep 29, 2024

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

I'm using the lua functions model.getTimer and model.setTimer
The Datastructure of the timer have changed but it looks like the lua functions have not been adopted.

In the old (still lua) version the information of the switch was part of "mode".
Now it is a variable of its own.
But it is not possible to access it with the lua functions because they were not adopted to the new data structure.

Expected Behavior

please adopt the lua functions (including documentation) to the new data structure.

Steps To Reproduce

write a small script to set a timer with a hardware switch (like SA-).
You will see that the old syntax will not work anymore.
You will end ab with a timer that shows "off" and no switch assigned.
And a call with ", switch=xx" in the parameter list will also not work.

Version

2.10.4

Transmitter

FrSky X9 Lite / Lite S

Operating System (OS)

Windows

OS Version

No response

Anything else?

Screenshot 2024-09-29 194915
Screenshot 2024-09-29 194959

@ChrisOhara57 ChrisOhara57 added bug 🪲 Something isn't working triage Bug report awaiting review / sorting labels Sep 29, 2024
@ChrisOhara57
Copy link
Author

Sorry, This is not a bug.

I've found out that I had a bug in my lua script.
This in combination with the out of date documentation made my wrongly believe that the the software is faulty.
Firmware seems to be ok, argument "switch" does work.
But documentation is our of date.

I do apologize, issue can be closed

@ChrisOhara57 ChrisOhara57 changed the title Lua: model.getTimer and model.setTimer are not updated to datastructure of 2.10.4 Lua: model.getTimer and model.setTimer are not updated to datastructure of 2.10.4 (issue can be closed) Sep 30, 2024
@ChrisOhara57 ChrisOhara57 changed the title Lua: model.getTimer and model.setTimer are not updated to datastructure of 2.10.4 (issue can be closed) (issue can be closed) Lua: model.getTimer and model.setTimer are not updated to datastructure of 2.10.4 Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working triage Bug report awaiting review / sorting
Projects
None yet
Development

No branches or pull requests

1 participant