From 13ecc35af74678ac65e35f8d26208b4e57d8bd4d Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 10 May 2021 09:02:27 -0400 Subject: [PATCH] docs --- firmware/controllers/flash_main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/controllers/flash_main.cpp b/firmware/controllers/flash_main.cpp index ca353d505b..84bd665c87 100644 --- a/firmware/controllers/flash_main.cpp +++ b/firmware/controllers/flash_main.cpp @@ -172,6 +172,11 @@ static persisted_configuration_state_e doReadConfiguration(flashaddr_t address) */ static persisted_configuration_state_e readConfiguration() { efiAssert(CUSTOM_ERR_ASSERT, getCurrentRemainingStack() > EXPECTED_REMAINING_STACK, "read f", PC_ERROR); + /* + * getFlashAddr does device validation, we want validation to be invoked even while we are + * HW_CHECK_MODE mode where we would not need actual address + * todo: rename method to emphasis the fact of validation check? + */ auto firstCopyAddr = getFlashAddrFirstCopy(); auto secondyCopyAddr = getFlashAddrSecondCopy();