From b1c56a7922582d1ef1150b8ccdb1eabfaa107175 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 25 Dec 2018 10:05:57 +0100 Subject: [PATCH] FocusSerial: Only send a single separator when sending Keys When sending `Key`s, there's no need for an extra separator, because `send(key.raw)` will send one anyway. Not sending one results in 10 bytes less PROGMEM used, and plenty of bytes less spent over the wire. Signed-off-by: Gergely Nagy --- src/kaleidoscope/plugin/FocusSerial.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/kaleidoscope/plugin/FocusSerial.h b/src/kaleidoscope/plugin/FocusSerial.h index ef691c94..8989478d 100644 --- a/src/kaleidoscope/plugin/FocusSerial.h +++ b/src/kaleidoscope/plugin/FocusSerial.h @@ -34,7 +34,6 @@ class FocusSerial : public kaleidoscope::Plugin { } void send(const Key key) { send(key.raw); - Serial.print(SEPARATOR); } void send(const bool b) { printBool(b);