aboutsummaryrefslogtreecommitdiff
path: root/keyboards/rubi/lib/oled.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/rubi/lib/oled.c')
-rw-r--r--keyboards/rubi/lib/oled.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/rubi/lib/oled.c b/keyboards/rubi/lib/oled.c
index d48d27323..9534cdd9b 100644
--- a/keyboards/rubi/lib/oled.c
+++ b/keyboards/rubi/lib/oled.c
@@ -239,7 +239,8 @@ void render_frame(void) {
239 } 239 }
240} 240}
241 241
242__attribute__((weak)) void oled_task_user(void) { 242bool oled_task_kb(void) {
243 if (!oled_task_user()) { return false; }
243 if (timer_elapsed(oled_frame_timer) > OLED_FRAME_TIMEOUT) { 244 if (timer_elapsed(oled_frame_timer) > OLED_FRAME_TIMEOUT) {
244 oled_clear(); 245 oled_clear();
245 oled_frame_timer = timer_read(); 246 oled_frame_timer = timer_read();
@@ -259,9 +260,10 @@ __attribute__((weak)) void oled_task_user(void) {
259 } else { 260 } else {
260 oled_mode = OLED_MODE_DEFAULT; 261 oled_mode = OLED_MODE_DEFAULT;
261 } 262 }
263 return false;
262} 264}
263 265
264oled_rotation_t oled_init_user(oled_rotation_t rotation) { 266oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
265 oled_logo_timer = timer_read(); 267 oled_logo_timer = timer_read();
266 oled_frame_timer = timer_read(); 268 oled_frame_timer = timer_read();
267 return rotation; 269 return rotation;