Keyboard: fix ifdef for crkbd's default/keymap.c

undef SSD1306OLED should not kill entire process_record_user() function.
master
Ryoichi KATO 2018-11-07 23:04:02 -08:00 committed by Drashna Jaelre
parent ba76fcfb8b
commit 5eb69ca224
1 changed files with 3 additions and 1 deletions

View File

@ -179,10 +179,13 @@ void iota_gfx_task_user(void) {
matrix_render_user(&matrix); matrix_render_user(&matrix);
matrix_update(&display, &matrix); matrix_update(&display, &matrix);
} }
#endif//SSD1306OLED
bool process_record_user(uint16_t keycode, keyrecord_t *record) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) { if (record->event.pressed) {
#ifdef SSD1306OLED
set_keylog(keycode, record); set_keylog(keycode, record);
#endif
// set_timelog(); // set_timelog();
} }
@ -244,4 +247,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true; return true;
} }
#endif