Do the Keyboardio.setup() early

This function registers the layer handler, move it up, before Keyboardio.use, so
it will have a chance to run before the other handlers.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/57/head
Gergely Nagy 8 years ago
parent e72867fe68
commit 9800926446

@ -48,6 +48,8 @@ const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
}
void setup() {
Keyboardio.setup(KEYMAP_SIZE);
Keyboardio.use(&LEDOff,
&solidRed, &solidOrange, &solidYellow, &solidGreen, &solidBlue, &solidIndigo, &solidViolet,
&LEDBreatheEffect, &LEDRainbowEffect, &LEDChaseEffect, &numLockEffect,
@ -56,7 +58,6 @@ void setup() {
&MouseKeys,
NULL);
Keyboardio.setup(KEYMAP_SIZE);
LEDOff.activate();
}

Loading…
Cancel
Save