From 4930da3e45f3c3fe33f0bd96366709d3fb00b3e2 Mon Sep 17 00:00:00 2001 From: Wolfgang Hoenig Date: Wed, 11 Jan 2023 14:20:09 +0100 Subject: [PATCH] Params: add missing callback for writeByName The callback function is used, e.g., for led.bitmask and currently only implemented for paramWriteProcess, not paramWriteByNameProcess --- src/modules/src/param_logic.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/src/param_logic.c b/src/modules/src/param_logic.c index 638e0ba1ee..37502e315a 100644 --- a/src/modules/src/param_logic.c +++ b/src/modules/src/param_logic.c @@ -407,6 +407,10 @@ static char paramWriteByNameProcess(char* group, char* name, int type, void *val paramSet(index, valptr); + if (params[index].callback) { + params[index].callback(); + } + return 0; }