projects
/
project
/
udebug.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b613879
)
lib: fix handling global enable flag
author
Felix Fietkau
<nbd@nbd.name>
Mon, 4 Dec 2023 18:53:50 +0000
(19:53 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Mon, 4 Dec 2023 18:53:53 +0000
(19:53 +0100)
don't override it for individual rings
Signed-off-by: Felix Fietkau <nbd@nbd.name>
lib.c
patch
|
blob
|
history
diff --git
a/lib.c
b/lib.c
index 5c5cd7e1c74335073fe911f2ae5f44a03bf079ce..0bb287ec4867cf12f8feba562f63b4df47161a1c 100644
(file)
--- a/
lib.c
+++ b/
lib.c
@@
-120,7
+120,7
@@
void udebug_ubus_apply_config(struct udebug *ud, struct udebug_ubus_ring *rings,
blobmsg_parse_attr(policy, __CFG_ATTR_MAX, tb, data);
- if ((cur = tb[CFG_ATTR_ENABLE]) != NULL)
+ if (
enabled &&
(cur = tb[CFG_ATTR_ENABLE]) != NULL)
cur_enabled = !!atoi(blobmsg_get_string(cur));
if ((cur = tb[CFG_ATTR_SIZE]) != NULL)