Update checking board master function (#12493)
changed is_master to is_keyboard_master()
This commit is contained in:
parent
da6e888a32
commit
5b394e82c9
1 changed files with 4 additions and 4 deletions
|
@ -5,10 +5,10 @@
|
||||||
#if defined(OLED_DRIVER_ENABLE) & !defined(KEYBOARD_kyria_rev1)
|
#if defined(OLED_DRIVER_ENABLE) & !defined(KEYBOARD_kyria_rev1)
|
||||||
|
|
||||||
static uint32_t oled_timer = 0;
|
static uint32_t oled_timer = 0;
|
||||||
extern uint8_t is_master;
|
|
||||||
|
|
||||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||||
if (is_master) {
|
if (is_keyboard_master()) {
|
||||||
return OLED_ROTATION_0;
|
return OLED_ROTATION_0;
|
||||||
}
|
}
|
||||||
return OLED_ROTATION_180;
|
return OLED_ROTATION_180;
|
||||||
|
@ -99,7 +99,7 @@ void oled_task_user(void) {
|
||||||
else { oled_on(); }
|
else { oled_on(); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (is_master) {
|
if (is_keyboard_master()) {
|
||||||
render_status();
|
render_status();
|
||||||
} else {
|
} else {
|
||||||
render_logo();
|
render_logo();
|
||||||
|
|
Loading…
Reference in a new issue