aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/psoc4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/psoc4.c')
-rw-r--r--src/flash/nor/psoc4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/psoc4.c b/src/flash/nor/psoc4.c
index b606e18..3ca1f36 100644
--- a/src/flash/nor/psoc4.c
+++ b/src/flash/nor/psoc4.c
@@ -335,7 +335,7 @@ static int psoc4_sysreq(struct flash_bank *bank, uint8_t cmd,
/* Execute wait code */
retval = target_run_algorithm(target, 0, NULL,
- sizeof(reg_params) / sizeof(*reg_params), reg_params,
+ ARRAY_SIZE(reg_params), reg_params,
sysreq_wait_algorithm->address, 0, 1000, &armv7m_info);
if (retval != ERROR_OK) {
LOG_ERROR("sysreq wait code execution failed");