From 732817c6ec00b06ceaf55c681e16b4e291a19247 Mon Sep 17 00:00:00 2001 From: din Date: Tue, 9 Sep 2025 17:58:38 -0500 Subject: [PATCH] fix bug in ddriotest neon --- src/main/ddriotest/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/ddriotest/main.c b/src/main/ddriotest/main.c index e03bc0c..60f6bfb 100644 --- a/src/main/ddriotest/main.c +++ b/src/main/ddriotest/main.c @@ -217,9 +217,11 @@ int main(int argc, char **argv) n = scanf("%d", &state); if (n > 0) { - extio_lights |= (1 << LIGHT_NEONS); - } else { - extio_lights &= ~(1 << LIGHT_NEONS); + if (state > 0) { + extio_lights |= (1 << LIGHT_NEONS); + } else { + extio_lights &= ~(1 << LIGHT_NEONS); + } } break;