diff options
Diffstat (limited to 'keyboards/knobgoblin/knobgoblin.c')
| -rw-r--r-- | keyboards/knobgoblin/knobgoblin.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/keyboards/knobgoblin/knobgoblin.c b/keyboards/knobgoblin/knobgoblin.c index 7349a3199..fcf86a3a4 100644 --- a/keyboards/knobgoblin/knobgoblin.c +++ b/keyboards/knobgoblin/knobgoblin.c | |||
| @@ -40,7 +40,9 @@ bool encoder_update_kb(uint8_t index, bool clockwise) { | |||
| 40 | 40 | ||
| 41 | #ifdef OLED_ENABLE | 41 | #ifdef OLED_ENABLE |
| 42 | /* rotate screen for proper orentation*/ | 42 | /* rotate screen for proper orentation*/ |
| 43 | __attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; } | 43 | oled_rotation_t oled_init_kb(oled_rotation_t rotation) { |
| 44 | return OLED_ROTATION_270; | ||
| 45 | } | ||
| 44 | 46 | ||
| 45 | /* byte map for the goblin logo, knob goblin text, and level text */ | 47 | /* byte map for the goblin logo, knob goblin text, and level text */ |
| 46 | static void render_goblin_logo(void) { | 48 | static void render_goblin_logo(void) { |
| @@ -72,7 +74,10 @@ static void render_goblin_logo(void) { | |||
| 72 | } | 74 | } |
| 73 | 75 | ||
| 74 | /* text display for layer indication */ | 76 | /* text display for layer indication */ |
| 75 | __attribute__((weak)) void oled_task_user(void) { | 77 | bool oled_task_kb(void) { |
| 78 | if (!oled_task_user()) { | ||
| 79 | return false; | ||
| 80 | } | ||
| 76 | 81 | ||
| 77 | render_goblin_logo(); | 82 | render_goblin_logo(); |
| 78 | 83 | ||
| @@ -99,5 +104,6 @@ __attribute__((weak)) void oled_task_user(void) { | |||
| 99 | break; | 104 | break; |
| 100 | 105 | ||
| 101 | } | 106 | } |
| 107 | return false; | ||
| 102 | } | 108 | } |
| 103 | #endif | 109 | #endif |
