From 73ef7a47316585732cd3627a4188f7d0c2646fd3 Mon Sep 17 00:00:00 2001 From: crudeboy776 <135294465+crudeboy776@users.noreply.github.com> Date: Wed, 21 Jan 2026 01:01:11 +0800 Subject: [PATCH] convert: fix declarations after case label --- convert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convert.c b/convert.c index 9228b11..869ce76 100644 --- a/convert.c +++ b/convert.c @@ -85,7 +85,7 @@ static void *modify_pots(void *arg) if (n <= 0) return NULL; switch (buf[0]) { - case 'p': + case 'p': { unsigned int idx = buf[1]-'0'; unsigned int d1 = buf[2]-'0'; unsigned int d2 = buf[3]-'0'; @@ -94,6 +94,7 @@ static void *modify_pots(void *arg) pots[idx] = (d1*10+d2) / 100.0; eff->describe(pots); break; + } } } }