From 5b216b6622e11a723093d73cffca31e189bdc2d4 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Fri, 2 Jun 2017 18:29:37 +0300 Subject: [PATCH] Updater was missing enablePartition --- libraries/Update/src/Updater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Update/src/Updater.cpp b/libraries/Update/src/Updater.cpp index 7f9b4c57..b8905bc8 100644 --- a/libraries/Update/src/Updater.cpp +++ b/libraries/Update/src/Updater.cpp @@ -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; }