summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-11-01 15:42:50 -0700
committerGitHub <noreply@github.com>2021-11-02 09:42:50 +1100
commit9d235d4fc5c34f372b0c393f41686b5ef4f8dc13 (patch)
treec155fae4cd6043c3c32aa185eb05c5d1a4a5700e /users
parentf775da96b17ceec66bac279434325b4da5cb9467 (diff)
[Core] Change OLED task function to be boolean (#14864)
* [Core] Add kb level callbacks to OLED driver * Update keyboards and keymaps * Update docs * Update userspace configs * Add fix for my keymap ... * update lefty
Diffstat (limited to 'users')
-rw-r--r--users/curry/oled.c3
-rw-r--r--users/drashna/oled_stuff.c3
-rw-r--r--users/ninjonas/oled.c3
-rw-r--r--users/riblee/riblee.c7
-rw-r--r--users/snowe/oled_setup.c3
-rw-r--r--users/tominabox1/tominabox1.c3
-rw-r--r--users/xulkal/custom_oled.c3
7 files changed, 16 insertions, 9 deletions
diff --git a/users/curry/oled.c b/users/curry/oled.c
index fc87a46e50..27f6072ff1 100644
--- a/users/curry/oled.c
+++ b/users/curry/oled.c
@@ -137,7 +137,7 @@ void render_status_secondary(void) {
render_keylogger_status();
}
-void oled_task_user(void) {
+bool oled_task_user(void) {
if (timer_elapsed32(oled_timer) > 30000) {
oled_off();
return;
@@ -152,6 +152,7 @@ void oled_task_user(void) {
} else {
render_status_secondary();
}
+ return false;
}
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
diff --git a/users/drashna/oled_stuff.c b/users/drashna/oled_stuff.c
index 4b54919507..7ccdfc98ac 100644
--- a/users/drashna/oled_stuff.c
+++ b/users/drashna/oled_stuff.c
@@ -421,7 +421,7 @@ oled_rotation_t oled_init_user(oled_rotation_t rotation) {
return oled_init_keymap(rotation);
}
-void oled_task_user(void) {
+bool oled_task_user(void) {
update_log();
if (is_keyboard_master()) {
@@ -442,4 +442,5 @@ void oled_task_user(void) {
} else {
render_keylock_status(host_keyboard_leds());
}
+ return false;
}
diff --git a/users/ninjonas/oled.c b/users/ninjonas/oled.c
index 1d88c30579..55eaf88ccb 100644
--- a/users/ninjonas/oled.c
+++ b/users/ninjonas/oled.c
@@ -90,7 +90,7 @@ static void render_logo(void) {
oled_write_P(qmk_logo, false);
}
-void oled_task_user(void) {
+bool oled_task_user(void) {
if (timer_elapsed32(oled_timer) > 15000) {
oled_off();
return;
@@ -106,6 +106,7 @@ void oled_task_user(void) {
oled_write_P(PSTR("\n"), false);
oled_scroll_left();
}
+ return false;
}
#endif
diff --git a/users/riblee/riblee.c b/users/riblee/riblee.c
index 04e37b2428..307c697204 100644
--- a/users/riblee/riblee.c
+++ b/users/riblee/riblee.c
@@ -245,10 +245,9 @@ static void render_info(void) {
}
// Print string received via HID RAW
- oled_write_ln(receive_buffer, false);
-}
+ oled_write_ln(receive_buffer, false);}
-void oled_task_user(void) {
+bool oled_task_user(void) {
static bool finished_timer = false;
if (!finished_timer && (timer_elapsed(startup_timer) < 1000)) {
render_logo();
@@ -259,6 +258,8 @@ void oled_task_user(void) {
}
render_info();
}
+ return false;
+
}
#ifdef RAW_ENABLE
diff --git a/users/snowe/oled_setup.c b/users/snowe/oled_setup.c
index 3d21ea9f0a..dfc4b085e3 100644
--- a/users/snowe/oled_setup.c
+++ b/users/snowe/oled_setup.c
@@ -121,7 +121,7 @@ void render_bootmagic_status(void) {
oled_write_ln(wpm, false);
}
-void oled_task_user(void) {
+bool oled_task_user(void) {
if (is_master) {
oled_render_layer_state();
oled_render_keylog();
@@ -136,6 +136,7 @@ void oled_task_user(void) {
render_stars();
# endif
}
+ return false;
}
#endif // OLED_ENABLE
diff --git a/users/tominabox1/tominabox1.c b/users/tominabox1/tominabox1.c
index e48959be9d..7322ead0dc 100644
--- a/users/tominabox1/tominabox1.c
+++ b/users/tominabox1/tominabox1.c
@@ -262,7 +262,7 @@ void render_status_main(void) {
__attribute__ ((weak))
void oled_task_keymap(void) {}
-void oled_task_user(void) {
+bool oled_task_user(void) {
if (timer_elapsed(oled_timer) > 20000) {
oled_off();
@@ -275,6 +275,7 @@ void oled_task_user(void) {
oled_scroll_left();
}
oled_task_keymap();
+ return false;
}
#endif // OLED_Driver
diff --git a/users/xulkal/custom_oled.c b/users/xulkal/custom_oled.c
index 4ed2b9a0b0..7fe8040927 100644
--- a/users/xulkal/custom_oled.c
+++ b/users/xulkal/custom_oled.c
@@ -176,7 +176,7 @@ static void render_status(void)
#endif // OLED_90ROTATION
-void oled_task_user(void)
+bool oled_task_user(void)
{
if (is_keyboard_master())
render_status();
@@ -185,4 +185,5 @@ void oled_task_user(void)
render_logo();
oled_scroll_left();
}
+ return false;
}