From 17b6755231bbb7d047b11dc5af1685c8376a7052 Mon Sep 17 00:00:00 2001 From: Andrey Tolstoy Date: Thu, 4 Nov 2021 08:50:59 +0700 Subject: [PATCH] address review comments --- hal/src/nRF52840/ota_flash_hal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/src/nRF52840/ota_flash_hal.cpp b/hal/src/nRF52840/ota_flash_hal.cpp index 24bf65bc69..5cd9c79035 100644 --- a/hal/src/nRF52840/ota_flash_hal.cpp +++ b/hal/src/nRF52840/ota_flash_hal.cpp @@ -188,7 +188,7 @@ int HAL_System_Info(hal_system_info_t* info, bool construct, void* reserved) } bool valid = fetch_module(module, bounds, false, MODULE_VALIDATION_INTEGRITY); valid = valid && (module->validity_checked == module->validity_result); - if (bounds->module_function == MODULE_FUNCTION_USER_PART) { + if (bounds->store == MODULE_STORE_MAIN && bounds->module_function == MODULE_FUNCTION_USER_PART) { if (valid) { user_module_found = true; } else {