From 73f57b4d110ec924086750972b2a75f7ab58d718 Mon Sep 17 00:00:00 2001 From: Jan Umbach Date: Tue, 22 Aug 2023 13:03:08 +0200 Subject: [PATCH] added Refreshrate --- Kconfig.projbuild | 7 +++++++ src/api/console.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Kconfig.projbuild b/Kconfig.projbuild index 6c0f8b0..b0b638f 100644 --- a/Kconfig.projbuild +++ b/Kconfig.projbuild @@ -70,6 +70,13 @@ menu "Jannex Configuration" depends on HTTP_SERVER_ENABLE_DEBUG_MODE help The length of the debug cache. The cache is used to store the last debug chars. The cache is used to send the last debug chars to the client when the client connects to the debug server or when the client reconnects to the debug server. + + config HTTP_SERVER_DEBUG_REFRESH_RATE + default 500 + int "HTTP Server Debug Refresh Rate" + depends on HTTP_SERVER_ENABLE_DEBUG_MODE + help + The refresh rate of the debug server in milliseconds. The refresh rate is used to send the debug chars to the client. config DEBUG_SEND_COREDUMP bool "Send coredump to debug server" diff --git a/src/api/console.c b/src/api/console.c index 61cff29..1c7a3d6 100644 --- a/src/api/console.c +++ b/src/api/console.c @@ -452,7 +452,7 @@ static void console_task(void *pvParameters) { sendOlderMessages(); - vTaskDelay(500 / portTICK_PERIOD_MS); + vTaskDelay(CONFIG_HTTP_SERVER_DEBUG_REFRESH_RATE / portTICK_PERIOD_MS); } }