1
0
Fork 0

Fix keyboard level use of OLED_DRIVER_ENABLE (#15343)

This commit is contained in:
Joel Challis 2021-11-28 21:00:02 +00:00 committed by GitHub
parent 097ae9d817
commit 4ee33f1ffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View file

@ -36,7 +36,7 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
return true;
}
//common oled support.
#ifdef OLED_DRIVER_ENABLE
#ifdef OLED_ENABLE
bool oled_task_kb(void) {
if (!oled_task_user()) {
return false;
@ -44,7 +44,7 @@ bool oled_task_kb(void) {
if (is_keyboard_master()) {
oled_write_P(PSTR("Layer: "), false);
switch (get_highest_layer(layer_state)) {
case _QWERTY:
case 0:
oled_write_ln_P(PSTR("Default"), false);
break;
default: