summaryrefslogtreecommitdiffstats
path: root/users/ninjonas/oled.c
diff options
context:
space:
mode:
authorcalebchongc <chchon21@colby.edu>2021-04-25 04:59:37 +0100
committerGitHub <noreply@github.com>2021-04-25 13:59:37 +1000
commit5b394e82c9da068dfed83ea6bdc40ba5182d7419 (patch)
tree08007d0015c3e8219ed6a2d148fc389e10907358 /users/ninjonas/oled.c
parentda6e888a32a6d9c09a1506e9ae4a59a36f8a5354 (diff)
Update checking board master function (#12493)
changed is_master to is_keyboard_master()
Diffstat (limited to 'users/ninjonas/oled.c')
-rw-r--r--users/ninjonas/oled.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/users/ninjonas/oled.c b/users/ninjonas/oled.c
index ffb9eecbcb..a3514f54f6 100644
--- a/users/ninjonas/oled.c
+++ b/users/ninjonas/oled.c
@@ -5,10 +5,10 @@
#if defined(OLED_DRIVER_ENABLE) & !defined(KEYBOARD_kyria_rev1)
static uint32_t oled_timer = 0;
-extern uint8_t is_master;
+
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
- if (is_master) {
+ if (is_keyboard_master()) {
return OLED_ROTATION_0;
}
return OLED_ROTATION_180;
@@ -99,7 +99,7 @@ void oled_task_user(void) {
else { oled_on(); }
#endif
- if (is_master) {
+ if (is_keyboard_master()) {
render_status();
} else {
render_logo();
@@ -108,4 +108,4 @@ void oled_task_user(void) {
}
}
-#endif \ No newline at end of file
+#endif