From 5049ac48c05746b881857f3eca65d03fec8ad924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20R=C3=B8nningstad?= Date: Tue, 17 Sep 2024 14:27:54 +0200 Subject: [PATCH] zcbor: Kconfig: Clarify docs for the ZCBOR_STOP_ON_ERROR config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Specify that it must also be enabled in code. Signed-off-by: Øyvind Rønningstad --- modules/zcbor/Kconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/zcbor/Kconfig b/modules/zcbor/Kconfig index 655fb2ed2a8..deb976bbcd0 100644 --- a/modules/zcbor/Kconfig +++ b/modules/zcbor/Kconfig @@ -19,8 +19,11 @@ config ZCBOR_CANONICAL indefinite-length arrays (it will still decode them properly). config ZCBOR_STOP_ON_ERROR - bool "Stop on error when processing" + bool "Stop on error when processing (Must also be enabled in state var)" help + Make the stop_on_error functionality available. Note that it still + needs to be enabled in the state variable + (`state->constant_state->stop_on_error`). This makes all functions abort their execution if called when an error has already happened.