From b604ae7685e3788741fdad6194fdf7b3571b23c7 Mon Sep 17 00:00:00 2001 From: Jacob Stoker Date: Thu, 23 Oct 2025 15:11:38 +0100 Subject: [PATCH] Update the lowest log level when changing the threshold of an already subscribed function --- src/ulog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ulog.c b/src/ulog.c index 2872de2..adcc38a 100644 --- a/src/ulog.c +++ b/src/ulog.c @@ -71,6 +71,7 @@ ulog_err_t ulog_subscribe(ulog_function_t fn, ulog_level_t threshold) { if (s_subscribers[i].fn == fn) { // already subscribed: update threshold and return immediately. s_subscribers[i].threshold = threshold; + s_lowest_log_level = ulog_lowest_log_level(); // Update lowest log level return ULOG_ERR_NONE; } else if (s_subscribers[i].fn == NULL) {