From 31b606e98bd1fae386edbeaf387bdd7403fa4d01 Mon Sep 17 00:00:00 2001 From: James Gzowski Date: Fri, 1 Nov 2024 16:36:41 +0000 Subject: [PATCH] Further changes as per suggestions, replaced _user for _kb within somei70.c --- keyboards/somei70/somei70.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/keyboards/somei70/somei70.c b/keyboards/somei70/somei70.c index fc97bfcde39..11199d78c21 100644 --- a/keyboards/somei70/somei70.c +++ b/keyboards/somei70/somei70.c @@ -56,15 +56,18 @@ void render_oled_display(void) { } } // Rotate 180 degrees -oled_rotation_t oled_init_user(oled_rotation_t rotation) { +oled_rotation_t oled_init_kb(oled_rotation_t rotation) { return OLED_ROTATION_180; } -bool oled_task_user(void) { +bool oled_task_kb(void) { + if (!oled_task_user()) { + return false; + } render_oled_display(); return false; } // Record keypress -bool process_record_user(uint16_t keycode, keyrecord_t *record) { +bool process_record_kb(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case KC_ESC: if (record->event.pressed) { @@ -82,6 +85,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } break; } - return true; + return process_record_user(keycode, record); } #endif