-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Show pilot name and craft name on arming screen if they are not empty #10506
Show pilot name and craft name on arming screen if they are not empty #10506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks straight forward.
I read the report on Discord... I tried it with Analog and Digital. But there appears to be some random DisplayPort issues. Whether the MSP is not keeping up or not.. This was with an F722 controller. When it works correctly we get this. Then the next time I arm. Or after an FC reboot, I get this and other character variations as well. And other characters again without a GNSS fix and Safehome position. |
It appears to be picking up a pilot name from somewhere. Presumably where there isn't one set. That would explain the erroneous characters. |
Probably uninitialized memory. Try
or adding |
Fixes #10506 buf2 and craftNameBuf were not initialised. But, could have been used. Both are now initialised before use.
buf2 and craftNameBuf were not initialised. But, could have been used. Both are now initialised before use. Initialises buf2 and craftNameBuf before use. buf2 is used for pilot name. craftNameBuf is used for craft name. Both, pilot but no craft name, and vice versa would have caused the error on the unused name.
That should be fixed now. There would have also been weirdness if there was a pilot name but no craft name. |
I need to test. But it should be straight forward.