From 1b1d3a14d6b456a3cc8bcfcc1d03c90af585e43d Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Fri, 31 Jul 2020 19:18:26 +0200 Subject: [PATCH] fw: Invert polarity of SBCMON pin --- firmware/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/input.c b/firmware/input.c index 6da5d06..9fe739d 100644 --- a/firmware/input.c +++ b/firmware/input.c @@ -102,7 +102,7 @@ inline void input_clear_events() inline uint8_t get_sbc_state() { - return !(PORT_SBCMON(PIN) & PIN_SBCMON); + return (PORT_SBCMON(PIN) & PIN_SBCMON); } // Need to call timer_proc() before calling this function!