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

Exclude MSP_OSD_CONFIG if USE_OSD not defined #12513

Merged
merged 1 commit into from Mar 14, 2023

Conversation

klutvott123
Copy link
Member

This will result in an error that can be used by clients to detect if the message is present or not. This is consistent with how it's done for MSP_SET_OSD_CONFIG. I see no reason for MSP_OSD_CONFIG to return anything that can be interpreted as valid parameters if the firmware is compiled without OSD support.

@github-actions
Copy link

Do you want to test this code? Here you have an automated build:
Assets
WARNING: It may be unstable. Use only for testing! See: https://www.youtube.com/watch?v=I1uN9CN30gw for instructions for unified targets!

@TheIsotopes
Copy link
Contributor

@klutvott123 works great 👍
everything options not compiled in the firmware is now shown as N/A.
tested your last pr from betaflight/betaflight-tx-lua-scripts#475 (comment)

@blckmn
Copy link
Member

blckmn commented Mar 13, 2023

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> PASS
  • assigned to a milestone -> PASS
  • cooling off period lapsed -> FAIL
  • commit count less or equal to three -> PASS
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> PASS
  • assigned to an approver -> PASS
  • approver count at least three -> PASS

@haslinghuis haslinghuis merged commit 9b4e613 into betaflight:master Mar 14, 2023
@klutvott123 klutvott123 deleted the exclude-MSP_OSD_CONFIG branch March 15, 2023 12:13
klutvott123 added a commit to klutvott123/betaflight that referenced this pull request Mar 28, 2023
davidbitton pushed a commit to davidbitton/betaflight that referenced this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: COMPLETED
Development

Successfully merging this pull request may close these issues.

None yet

5 participants