Closed mha1 closed 1 year ago
Nice catch. Insidious little gremlin... looks like it was probably due to hex2zchar
seemingly doing something similar, but must be handled differently as that is legacy OTX stuff.
@pfeerick speaking of zchar stuff, isn't all zchar code obsolete?
Most, but I'm not sure it's all obsolete - there seem to be some active references to it in some odd places still... like strcatFlightmodeName
🤷 If you want to have a go at killing it once and for all I won't stop you 😁
I rephrase: shouldn't zchar code be obsolete? The fact zchar code is only rarely used made me suspicious.
Unrelated: I need some advise on another thing I'm implementing and testing right now. Are you available for a discussion on Discord DM? I'll jot down the general idea and some questions. Talk tomorrow or so.
It was a pet hate of Raphael's and he is responsible for so little of it existing now ;)
Sure, the next couple of days should be fine. Or you can stop by the dev hour chat thingy that's happening shortly and see what the guys think ;)
I sympathize.
I'd prefer to have your opinion and advise as a first step if that's not a problem for you.
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Transmitter firmware
Current Behavior
radio/src/strhelper.cpp:
char hex2char(uint8_t hex) { return (hex >= 10 ? hex - 9 + 'A' : hex + '0'); }
outputs for
Expected Behavior
Well, you know ...
Steps To Reproduce
checkout
hex - 9
Version
2.8.1 and 2.9
Transmitter
Radiomaster TX16S / TX16SMK2
Anything else?
No response