FrSkyRC / ETHOS-Feedback-Community

Feedback & suggestions are welcomed here for ETHOS by FrSky
191 stars 85 forks source link

Lua: FM-dependent Vars are only propagated “a long time” after FM change #4300

Open strgaltdel opened 3 months ago

strgaltdel commented 3 months ago

Observation:

In a widget, I noticed that my "lua driven" vars got “mixed up” after some FM changes After some research, it turned out that I could recognize an FM change in lua, but if I read in the (now new) values immediately, I got them from the former FM

background:

Issue:

FMfail

Attached you will find a demo template and a demo widget that outputs FM and Var values after an FM change (as mentioned, FM change by right slider, FM determined by LSW 63-69

When I tested this scenario back then on the 1.5.8 sim, I was surprised that this “fail” was only seen in rare cases, and then with a very short delay.

GV 158

As I said, you can use a workaround, I personally don't see a high priority in a short-term fix.

regards Udo

demo script & template (1.5.8): FMvar.zip

strgaltdel commented 1 month ago

... just tested with 1.5.16n (x18 sim) same behavior