From d59604e98b2439d108647f15be52984a6837d360 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 9 Feb 2022 00:43:35 +0100 Subject: [PATCH] Model100: Use the real Serial, instead of the default NoSerial By default, `kaleidoscope::device::Base<>` uses a dummy serial implementation, and devices must override that to use the proper one. For the Model01, on which the Model100 plugin was based on, this is done by the `ATMega32U4Keyboard` class. For the Model100, we need to do it ourselves, because we're deriving from Base directly. Signed-off-by: Gergely Nagy --- .../src/kaleidoscope/device/keyboardio/Model100.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h index 7046e30e..7e1867b6 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h @@ -138,6 +138,10 @@ class Model100 : public kaleidoscope::device::Base { public: void setup(); + auto serialPort() -> decltype(Serial) & { + return Serial; + } + static void enableHardwareTestMode(); };