device/Model01: Use a non-static setup()

Make the Model01's `setup()` method non-static, so that we can call the parents
`setup()` method too. We want to do that so if new drivers are added, we
automatically pick those up.

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

@ -285,8 +285,8 @@ uint8_t Model01KeyScanner::previousPressedKeyswitchCount() {
/********* Hardware plugin *********/
void Model01::setup() {
KeyScanner::setup();
Model01Hands::setup();
kaleidoscope::device::Base<Model01Props>::setup();
TWBR = 12; // This is 400mhz, which is the fastest we can drive the ATTiny
}

@ -127,7 +127,7 @@ struct Model01Props : public kaleidoscope::device::ATmega32U4KeyboardProps {
class Model01 : public kaleidoscope::device::ATmega32U4Keyboard<Model01Props> {
public:
static void setup();
void setup();
static void enableHardwareTestMode();
};

Loading…
Cancel
Save