Revert "Fix enable Update partition"

This reverts commit 63e1daa5ea67ce0f9b89b789e4bb26672f64d32e.
This commit is contained in:
me-no-dev
2017-06-03 20:10:15 +03:00
parent 2e5743eaa1
commit c2f83f48e0
2 changed files with 10 additions and 32 deletions

View File

@ -209,7 +209,7 @@ bool UpdateClass::_verifyHeader(uint8_t data) {
bool UpdateClass::_verifyEnd() {
if(_command == U_FLASH) {
if(!_enablePartition(_partition) || !_partitionIsBootable(_partition)) {
if(!_enablePartition || !_partitionIsBootable(_partition)) {
_abort(UPDATE_ERROR_READ);
return false;
}