Skip to content

Utilized UPDATE_ERROR_ERASE, added _setError function and refactored code #4190

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 3 commits into from
Jan 18, 2018
Merged

Utilized UPDATE_ERROR_ERASE, added _setError function and refactored code #4190

merged 3 commits into from
Jan 18, 2018

Conversation

egemenertugrul
Copy link
Contributor

@egemenertugrul egemenertugrul commented Jan 18, 2018

Added two boolean results in _writeBuffer() function, thus utilized UPDATE_ERROR_ERASE. This helps to notice whether ESP.flashEraseSector or ESP.flashWrite was unsuccessful when an error occurs. Previously, it would only show UPDATE_ERROR_WRITE.

With the request of @devyte , added _setError function to wrap some lines up and tidied the code.

egemenertugrul and others added 3 commits January 18, 2018 11:31
_setError function wraps a few lines to eliminate repetitiveness when debugging for errors.
_setError function wraps a few lines to eliminate repetitiveness when debugging for errors.
@devyte devyte merged commit d5c43f0 into esp8266:master Jan 18, 2018
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