summaryrefslogtreecommitdiff
path: root/keyboards/cannonkeys/stm32f072/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/cannonkeys/stm32f072/keyboard.c')
-rw-r--r--keyboards/cannonkeys/stm32f072/keyboard.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/keyboards/cannonkeys/stm32f072/keyboard.c b/keyboards/cannonkeys/stm32f072/keyboard.c
index 02c6dae18b..5a9ccafff7 100644
--- a/keyboards/cannonkeys/stm32f072/keyboard.c
+++ b/keyboards/cannonkeys/stm32f072/keyboard.c
@@ -12,8 +12,8 @@
#include "tmk_core/common/eeprom.h"
// HACK
-#include "keyboards/zeal60/zeal60_api.h" // Temporary hack
-#include "keyboards/zeal60/zeal60_keycodes.h" // Temporary hack
+#include "keyboards/wilba_tech/via_api.h" // Temporary hack
+#include "keyboards/wilba_tech/via_keycodes.h" // Temporary hack
backlight_config_t kb_backlight_config = {
@@ -86,10 +86,9 @@ void matrix_init_board(void);
void matrix_init_kb(void){
eeprom_init_kb();
/* MOSI pin*/
+#ifdef RGBLIGHT_ENABLE
palSetPadMode(PORT_WS2812, PIN_WS2812, PAL_MODE_ALTERNATE(0));
wait_ms(500);
-
-#ifdef RGBLIGHT_ENABLE
leds_init();
#endif
backlight_init_ports();
@@ -162,7 +161,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
}
#endif //DYNAMIC_KEYMAP_ENABLE
- return true;
+ return process_record_user(keycode, record);;
}