Skip to content

Do not return MSP_RESULT_ERROR when succesful #13328

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

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

haslinghuis
Copy link
Member

@haslinghuis haslinghuis commented Jan 25, 2024

EXIT_SUCCESS would be better.

Saw this issue while troubleshooting reboot into DFU issue on a H7.

To reproduce unsupported message error - change timer settings in OSD tab and save.

@haslinghuis haslinghuis added this to the 4.5 milestone Jan 25, 2024
@haslinghuis haslinghuis self-assigned this Jan 25, 2024
Copy link

Do you want to test this code? You can flash it directly from Betaflight Configurator:

  • Simply put #13328 (this pull request number) in the Select commit field of the Configurator firmware flasher tab (you need to Enable expert mode, Show release candidates and Development).

WARNING: It may be unstable. Use only for testing!

Copy link
Member

@nerdCopter nerdCopter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • unable to test.
  • approving as seems appropriate, but prefer @SteveCEvans to review.

@SteveCEvans
Copy link
Member

Your change appears unrelated to your question. MSP_OSD_CHAR_WRITE is indeed used to upload font data and is thus not supported for HD and so should error.

Your proposed change regarding not erroring a legitimate timer change looks good.

This PR should be simple but the question makes it rather confusing!

@haslinghuis
Copy link
Member Author

@SteveCEvans thank you for answering my question. Have removed it from the PR description.

@ctzsnooze
Copy link
Member

@SteveCEvans is this PR good to go now?

@haslinghuis haslinghuis merged commit d84ec8d into betaflight:master Feb 4, 2024
@haslinghuis haslinghuis deleted the fix-msp-return branch February 4, 2024 10:52
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.

4 participants