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 <algernon@keyboard.io>
pull/514/head
Gergely Nagy 6 years ago
parent 513e28d8cc
commit b1c56a7922
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -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);

Loading…
Cancel
Save