FocusSerial: Add Focus.read(char &c)

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/1206/head
Gergely Nagy 2 years ago
parent f5639dd5ba
commit e52cf5c821
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -94,6 +94,9 @@ class FocusSerial : public kaleidoscope::Plugin {
color.g = Runtime.serialPort().parseInt();
color.b = Runtime.serialPort().parseInt();
}
void read(char &c) {
c = static_cast<char>(Runtime.serialPort().read());
}
void read(uint8_t &u8) {
u8 = Runtime.serialPort().parseInt();
}

Loading…
Cancel
Save