Skip to content

connection: Swap error and status in CommandResponse #269

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

Conversation

maximeborges
Copy link
Contributor

In stub_flasher.c:319 we can see that error is sent before status:

SLIP_send_frame_data(error);
SLIP_send_frame_data(status);
SLIP_send_frame_delimiter();

This PR swap those two fields in the CommandResponse struct.

Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

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

Sneaky, good catch!

@jessebraham jessebraham merged commit c2a4854 into esp-rs:main Oct 24, 2022
@maximeborges maximeborges deleted the bugfix/CommandResponse_swap-error-status branch October 24, 2022 16:50
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 this pull request may close these issues.

2 participants