summaryrefslogtreecommitdiff
path: root/test/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/flash.c')
-rw-r--r--test/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/flash.c b/test/flash.c
index 401e2bd6f4..1b55d236d9 100644
--- a/test/flash.c
+++ b/test/flash.c
@@ -353,7 +353,7 @@ static int test_flash_info(void)
TEST_ASSERT(test_send_host_command(EC_CMD_FLASH_INFO, 1, NULL, 0,
&resp, sizeof(resp)) == EC_RES_SUCCESS);
- TEST_CHECK((resp.flash_size == CONFIG_FLASH_SIZE) &&
+ TEST_CHECK((resp.flash_size == CONFIG_FLASH_SIZE_BYTES) &&
(resp.write_block_size == CONFIG_FLASH_WRITE_SIZE) &&
(resp.erase_block_size == CONFIG_FLASH_ERASE_SIZE) &&
(resp.protect_block_size == CONFIG_FLASH_BANK_SIZE));