diff options
-rw-r--r-- | src/transport/swd_libswd_drv_openocd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/swd_libswd_drv_openocd.c b/src/transport/swd_libswd_drv_openocd.c index c503a9a2..5ab75c69 100644 --- a/src/transport/swd_libswd_drv_openocd.c +++ b/src/transport/swd_libswd_drv_openocd.c @@ -260,7 +260,7 @@ int swd_log_level_inherit(swd_ctx_t *swdctx, int loglevel){ if (res<0) { LOG_ERROR("swd_log_level_set() failed (%s)\n", swd_error_string(res)); return ERROR_FAIL; - } else return SWD_OK; + } return new_swdlevel; } /** We will use OpenOCD's logging mechanisms to show LibSWD messages. */ |