Skip to content

Commit 5b216b6

Browse files
committed
Updater was missing enablePartition
1 parent 063d608 commit 5b216b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Update/src/Updater.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ bool UpdateClass::_verifyHeader(uint8_t data) {
209209

210210
bool UpdateClass::_verifyEnd() {
211211
if(_command == U_FLASH) {
212-
if(!_partitionIsBootable(_partition)) {
212+
if(!_enablePartition || !_partitionIsBootable(_partition)) {
213213
_abort(UPDATE_ERROR_READ);
214214
return false;
215215
}

0 commit comments

Comments
 (0)