This is an automated email from Gerrit.

"zapb <d...@zapb.de>" just uploaded a new patch set to Gerrit, which you can 
find at https://review.openocd.org/c/openocd/+/8002

-- gerrit

commit 9b4dc8e3ec965abd12b2ab07e580b43314533c45
Author: Marc Schink <d...@zapb.de>
Date:   Sat Nov 11 10:23:00 2023 +0100

    flash/nor/stm32l4x: Use correct command error
    
    Change-Id: Ied8204b40c778d743a7d99d370f7db242cf707a2
    Signed-off-by: Marc Schink <d...@zapb.de>

diff --git a/src/flash/nor/stm32l4x.c b/src/flash/nor/stm32l4x.c
index 51debe318b..043687ba5d 100644
--- a/src/flash/nor/stm32l4x.c
+++ b/src/flash/nor/stm32l4x.c
@@ -2534,7 +2534,7 @@ COMMAND_HANDLER(stm32l4_handle_otp_command)
                command_print(CMD, "OTP memory bank #%d is %s for write 
commands.",
                                bank->bank_number, stm32l4_otp_is_enabled(bank) 
? "enabled" : "disabled");
        else
-               return ERROR_COMMAND_SYNTAX_ERROR;
+               return ERROR_COMMAND_ARGUMENT_INVALID;
 
        return ERROR_OK;
 }

-- 

Reply via email to