Fix espota completion success/fail check by earlephilhower · Pull Request #7204 · esp8266/Arduino

and others added 5 commits

April 9, 2020 16:19
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

@earlephilhower

Add comments to the final if-else for status message parsing.

Adjust return statement

@earlephilhower