From 978a160c6b6305648a9454eb9697c9fdf55c3081 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 20 Nov 2016 08:44:01 +0100 Subject: [PATCH] TestMode: return false in the event handler hook After writing the row to Serial, return false, so that the key will be further processed by the next handler. Also fixes a compile-time warning with -Wall. Signed-off-by: Gergely Nagy --- src/TestMode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TestMode.cpp b/src/TestMode.cpp index 4edc0239..45a983cb 100644 --- a/src/TestMode.cpp +++ b/src/TestMode.cpp @@ -63,6 +63,7 @@ void TestMode_::setup() { } bool handle_key_event_test(Key mappedKey, byte row, byte col, uint8_t currentState, uint8_t previousState) { Serial.write(row); + return false; } TestMode_ TestMode;