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 <algernon@madhouse-project.org>
pull/42/head
Gergely Nagy 8 years ago
parent 9fff7d8519
commit 978a160c6b

@ -63,6 +63,7 @@ void TestMode_::setup() {
} }
bool handle_key_event_test(Key mappedKey, byte row, byte col, uint8_t currentState, uint8_t previousState) { bool handle_key_event_test(Key mappedKey, byte row, byte col, uint8_t currentState, uint8_t previousState) {
Serial.write(row); Serial.write(row);
return false;
} }
TestMode_ TestMode; TestMode_ TestMode;

Loading…
Cancel
Save