Fix espota completion success/fail check#7204
Merged
earlephilhower merged 7 commits intoesp8266:masterfrom Apr 16, 2020
Merged
Conversation
The OTA script was not reporting the actual reported upload status from the ESP8266, and instead always printed "Result: OK" no matter what happened. Now check for ERROR or OK in final message (and ensure the message is not accidentally merged with the final byte count) and report properly. Fixes esp8266#7162
devyte
requested changes
Apr 12, 2020
Add comments to the final if-else for status message parsing. Adjust return statement
devyte
approved these changes
Apr 14, 2020
|
Hi, on Arduino IDE 1.8.12 Win64 after this commit the network port of a sketch w/ usual OTA is there after an upload but later (on next start of the IDE) it disappears. Please verify. |
Collaborator
|
Please open a new issue and follow the issue template instructions. Please be specific about how to reproduce. |
|
Sorry, the problem is not here. It is a side effect on my setup after this change: I have 2 x active network interfaces on a Win10 PC. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The OTA script was not reporting the actual reported upload status from
the ESP8266, and instead always printed "Result: OK" no matter what
happened.
Now check for ERROR or OK in final message (and ensure the message is
not accidentally merged with the final byte count) and report properly.
Fixes #7162