summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyoichi KATO <ryo1kato@gmail.com>2018-11-07 23:04:02 -0800
committerDrashna Jaelre <drashna@live.com>2018-11-08 06:45:09 -0800
commit5eb69ca224f3d4233860a658e6a27516d86c4de7 (patch)
tree82f76a4ff3df84624224fc24b8688db2acb87208
parentba76fcfb8bbc531213619f2893415c8744b65a47 (diff)
Keyboard: fix ifdef for crkbd's default/keymap.c
undef SSD1306OLED should not kill entire process_record_user() function.
-rw-r--r--keyboards/crkbd/keymaps/default/keymap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/crkbd/keymaps/default/keymap.c b/keyboards/crkbd/keymaps/default/keymap.c
index e92fbdebfa..c7c9582e83 100644
--- a/keyboards/crkbd/keymaps/default/keymap.c
+++ b/keyboards/crkbd/keymaps/default/keymap.c
@@ -179,10 +179,13 @@ void iota_gfx_task_user(void) {
matrix_render_user(&matrix);
matrix_update(&display, &matrix);
}
+#endif//SSD1306OLED
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
+#ifdef SSD1306OLED
set_keylog(keycode, record);
+#endif
// set_timelog();
}
@@ -244,4 +247,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}
-#endif