Updater was missing enablePartition

This commit is contained in:
me-no-dev 2017-06-02 18:29:37 +03:00
parent 063d608e18
commit 5b216b6622

View File

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