summaryrefslogtreecommitdiffstats
path: root/keyboards/zen/rev2/rev2.c
diff options
context:
space:
mode:
authorRyan Caltabiano <rcalt2vt@gmail.com>2019-04-17 01:36:55 +0200
committerskullydazed <skullydazed@users.noreply.github.com>2019-04-20 17:05:10 +0200
commitdd3a813f871b911012da55a499955307c309a7a5 (patch)
tree80df58d039a9b20283057809925a2351121135d5 /keyboards/zen/rev2/rev2.c
parent0a645225b9c863a106921185a6c2e0c340f10694 (diff)
downloadqmk_firmware-dd3a813f871b911012da55a499955307c309a7a5.tar.gz
qmk_firmware-dd3a813f871b911012da55a499955307c309a7a5.tar.xz
Reducing size of data send in one frame & update Zen rev2 oled usage
Diffstat (limited to 'keyboards/zen/rev2/rev2.c')
-rw-r--r--keyboards/zen/rev2/rev2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/zen/rev2/rev2.c b/keyboards/zen/rev2/rev2.c
index 4104460db..7bd8efbdd 100644
--- a/keyboards/zen/rev2/rev2.c
+++ b/keyboards/zen/rev2/rev2.c
@@ -47,11 +47,11 @@ void render_status(void) {
oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCRLK") : PSTR(" "), false); // Line 16
}
-#ifdef OLED_ROTATE90
-bool oled_init_user(bool flip180) {
- return true;
+oled_rotation_t oled_init_user(oled_rotation_t rotation) {
+ if (is_keyboard_master())
+ return OLED_ROTATION_90; // flips the display 90 degrees if mainhand
+ return rotation;
}
-#endif
__attribute__((weak))
void oled_task_user(void) {