From 4cd23033abfdd4d15bc037bf71076f3e430af827 Mon Sep 17 00:00:00 2001 From: Fabien Marteau Date: Mon, 18 Mar 2024 15:07:38 +0100 Subject: [PATCH] avoid warning --- scythe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scythe.c b/scythe.c index 494de5e..65c378d 100644 --- a/scythe.c +++ b/scythe.c @@ -141,7 +141,7 @@ void read_pedals() //debug_arr(response, 8); printf("[switch %d]: ", i + 1); - if (response[1] >= 0x80 && response[1] <= 0x82 || response[1] == 0x84) { + if ((response[1] >= 0x80 && response[1] <= 0x82) || response[1] == 0x84) { print_mouse(response); } else if (response[1] == 0xff) { printf("undefined");