From f995b028e96a662fbce63d3e89677e3b5dad151b Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Fri, 13 Jun 2025 10:28:01 +0200 Subject: [PATCH] Fixed double declaration --- software/lib/canbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/lib/canbus.c b/software/lib/canbus.c index 55442a3..bac6b69 100644 --- a/software/lib/canbus.c +++ b/software/lib/canbus.c @@ -26,7 +26,7 @@ static int canbus_set(const char *key, size_t len, settings_read_cb read_cb, voi return -EINVAL; // Invalid argument } - int rc = read_cb(cb_arg, &node_id, sizeof(node_id)); + rc = read_cb(cb_arg, &node_id, sizeof(node_id)); if (rc < 0) { LOG_ERR("Failed to read node_id setting: %d", rc);