fixup: move OLED task logic from default keyboard to keyboard level.

Thanks to @drasha suggestion.
This commit is contained in:
Mark Stosberg 2024-09-19 14:27:04 -04:00
parent 7c34400288
commit 25a4d5fb86
No known key found for this signature in database
2 changed files with 9 additions and 9 deletions

View File

@ -210,6 +210,15 @@ void cocot_set_scroll_mode(bool mode) {
// OLED utility // OLED utility
#ifdef OLED_ENABLE #ifdef OLED_ENABLE
bool oled_task_kb(void) {
if (!oled_task_user()) {
return false;
}
render_logo();
oled_write_layer_state();
return false;
}
oled_rotation_t oled_init_user(oled_rotation_t rotation) { oled_rotation_t oled_init_user(oled_rotation_t rotation) {
return OLED_ROTATION_0; return OLED_ROTATION_0;
} }

View File

@ -123,12 +123,3 @@ layer_state_t layer_state_set_user(layer_state_t state) {
#endif #endif
return state; return state;
}; };
#ifdef OLED_ENABLE
bool oled_task_user(void) {
render_logo();
oled_write_layer_state();
return false;
}
#endif