aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/ymdk_np21/ymdk_np21.c
diff options
context:
space:
mode:
authorGravatar Drashna Jaelre <drashna@live.com>2018-10-01 08:09:57 -0700
committerGravatar Jack Humbert <jack.humb@gmail.com>2018-10-01 11:09:57 -0400
commit3907ed034bec6730d8bff401ac632161540ea3cb (patch)
tree345edb48870809e447ac308375d9427892864c88 /keyboards/ymdk_np21/ymdk_np21.c
parent9d949389f92b6b397ed62246b60ead86d80a57a1 (diff)
downloadqmk_firmware-3907ed034bec6730d8bff401ac632161540ea3cb.tar.gz
Fix YMDK NP21 keyboard to use proper keyboard level functions (#3042)
* Use proper function levels * Add matrix init functions * Convert KEYMAP to LAYOUT Or @mechmerlin is going to hunt me down and harm me... probably :) * Fix conflict issues
Diffstat (limited to 'keyboards/ymdk_np21/ymdk_np21.c')
-rw-r--r--keyboards/ymdk_np21/ymdk_np21.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/ymdk_np21/ymdk_np21.c b/keyboards/ymdk_np21/ymdk_np21.c
index 670083a11..c1b11b404 100644
--- a/keyboards/ymdk_np21/ymdk_np21.c
+++ b/keyboards/ymdk_np21/ymdk_np21.c
@@ -34,7 +34,7 @@ extern rgblight_config_t rgblight_config;
// @Override
void matrix_init_kb(void) {
// call user level keymaps, if any
- // matrix_init_user();
+ matrix_init_user();
}
#ifdef BACKLIGHT_ENABLE
@@ -67,7 +67,7 @@ void rgblight_set(void) {
}
bool rgb_init = false;
-void matrix_scan_user(void) {
+void matrix_scan_kb(void) {
// if LEDs were previously on before poweroff, turn them back on
if (rgb_init == false && rgblight_config.enable) {
i2c_init();
@@ -77,4 +77,6 @@ void matrix_scan_user(void) {
rgblight_task();
/* Nothing else for now. */
+
+ matrix_scan_user();
}