Skip to content
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

DEBUG OSD Element is wider than OSD available space [2.7.0] #6639

Closed
b14ckyy opened this issue Feb 24, 2021 · 2 comments · Fixed by #6660
Closed

DEBUG OSD Element is wider than OSD available space [2.7.0] #6639

b14ckyy opened this issue Feb 24, 2021 · 2 comments · Fixed by #6660

Comments

@b14ckyy
Copy link
Collaborator

b14ckyy commented Feb 24, 2021

Current Behavior

Adding the OSD Item 78 for DEBUG info, starting at column 0 of the OSD area, will still crop the right side of the element.

Steps to Reproduce

  1. Enable OSD ID 78 with column coordinate 0
  2. Look at the OSD on goggles or monitor
  3. Right side of the OSD element crops 1 or 2 digits

Expected behavior

DEBUG OSD should be visible completely to be usable

Suggested solution(s)

lower the number of visible digits of all debug values by 1 to save width

Additional context

none


  • FC Board name and vendor: MATEKF405SE / F405 Wing and also F411-WSE
  • INAV version string: 2.7.0 Feb 18 2021 / 09:51:07 (fc7aeaf)
@breadoven
Copy link
Collaborator

I just removed the square brackets except 1. Just as readable without them:

tfp_sprintf(buff, "%u=%11ld [%u=%11ld", bufferIndex, debug[bufferIndex], bufferIndex+1, debug[bufferIndex+1]);

@b14ckyy
Copy link
Collaborator Author

b14ckyy commented Feb 24, 2021

awesome. Then I can continue to test the new board align feature with Pawel :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants