Skip to content

Commit

Permalink
Keyboard: fix ifdef for crkbd's default/keymap.c
Browse files Browse the repository at this point in the history
undef SSD1306OLED should not kill entire process_record_user() function.
  • Loading branch information
ryo1kato authored and drashna committed Nov 8, 2018
1 parent ba76fcf commit 5eb69ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion keyboards/crkbd/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -244,4 +247,3 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}

#endif

0 comments on commit 5eb69ca

Please sign in to comment.