edgetx
edgetx copied to clipboard
Issue with flex switches and switch warning
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
There is an issue with YAML saving of customs switches. The warnings are using only 1 leter to save instead of the usual format. SA.SB,.. are saved as A,B,... FL, FL2,.. are saved as .... L (all of them)
So when read, only FL1 gets populated, with the value of the last FL been encoded in warnings
Expected Behavior
Flex are saved in an error free format
Steps To Reproduce
Create flex switches, assign several to switch warning. Turn off, turn on. oh noooo
Version
Nightly (Please give date/commit below)
Transmitter
RadioMaster MT12
Operating System (OS)
No response
OS Version
No response
Anything else?
No response
This is another son (or daughter) of you know what 2.10 PR :D.
The faulty fonction is switchGetLetter() (fortunatly used only to save switch warnings). I'm discussion with @raphaelcoeffic the best way forward
Solution will have to involve companion too