Minor dissapearing cursor bug fix and some code cleanup for BW Lua#405
Minor dissapearing cursor bug fix and some code cleanup for BW Lua#405jlpoltrack merged 2 commits intoolliw42:mainfrom
Conversation
…n invisible cursor location at the end of parameters. Eliminate some unneeded code now that we have the same number of cursor index positions now on all pages except 99.
|
great. THX. When tested by @jlpoltrack he can merge. Question: The "ugly" special code may not have to come back at some later point? |
Yes, it is a happy coincidence. If we add or delete a cursor position on page 0, but not on the other pages, we will need a possibly different adjustment. I believe the color Lua has a different function for the initial page, but in the name of smaller code, I ended up with a bit of a mess which I'm happy to be able to reduce now, even if I have to put it back later. |
|
great. |
|
@brad112358 this works fine for me on GX12. One minor suggestion - can you share the EdgeTx version that you used for the compiled version just for reference in the first comment of the PR? |
|
I've edited the first comment. Since you mention it, do we know of any version related Luac incompatibility issues yet? |
I do not - I think EdgeTx is changing Lua version in 3.x, so good to have for reference. |
Since the number of cursor index positions is now the same for all pages except the info page, we can eliminate some of the ugly special case code associated with page 0. Also, reduce the options on the info page to just "Next" which returns to page 0. Bonus: This should use just a tad less memory.
Tested and compiled on EdgeTx version 2.11.4.
@jlpoltrack, perhaps you can give this a quick look and test. Thanks!