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) {