From ad0e3a40e8321ba636f1886b5569798120357d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20G=C5=82=C4=85bek?= Date: Fri, 2 Jul 2021 09:26:02 +0200 Subject: [PATCH] samples: subsys: task_wdt: Minor corrections in config and doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the actual minimum timeout used by the sample for task watchdog channels (100 ms) as the configuration value for the fallback hardware watchdog, to avoid unnecessary executions of the timer handler. Add missing indentation in the documentation of the sample so that the console output is rendered correctly. Signed-off-by: Andrzej Głąbek --- samples/subsys/task_wdt/README.rst | 20 ++++++++++---------- samples/subsys/task_wdt/prj.conf | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/samples/subsys/task_wdt/README.rst b/samples/subsys/task_wdt/README.rst index d5e1bfe41ed..03cfd7e90c3 100644 --- a/samples/subsys/task_wdt/README.rst +++ b/samples/subsys/task_wdt/README.rst @@ -36,13 +36,13 @@ reset): .. code-block:: console -Task watchdog sample application. -Main thread still alive... -Control thread started. -Main thread still alive... -Main thread still alive... -Main thread still alive... -Control thread getting stuck... -Main thread still alive... -Task watchdog channel 1 callback, thread: control -Resetting device... + Task watchdog sample application. + Main thread still alive... + Control thread started. + Main thread still alive... + Main thread still alive... + Main thread still alive... + Control thread getting stuck... + Main thread still alive... + Task watchdog channel 1 callback, thread: control + Resetting device... diff --git a/samples/subsys/task_wdt/prj.conf b/samples/subsys/task_wdt/prj.conf index 6ceb475efd5..2e1f0cb5883 100644 --- a/samples/subsys/task_wdt/prj.conf +++ b/samples/subsys/task_wdt/prj.conf @@ -5,6 +5,6 @@ CONFIG_WDT_LOG_LEVEL_DBG=y CONFIG_WDT_DISABLE_AT_BOOT=y CONFIG_TASK_WDT=y -CONFIG_TASK_WDT_MIN_TIMEOUT=50 +CONFIG_TASK_WDT_MIN_TIMEOUT=100 CONFIG_THREAD_NAME=y