Skip to content

Commit

Permalink
merge/um80 - Fix WPM issues in configurator builds (qmk#17608)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Jul 9, 2022
1 parent 561c5e1 commit 2106acc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions keyboards/merge/um80/um80.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

#include "um80.h"

#ifndef WPM_ENABLE
# define get_current_wpm() 0
#endif

#ifdef OLED_ENABLE
void suspend_power_down_kb(void) {
oled_off();
Expand Down Expand Up @@ -61,8 +65,6 @@ static const char PROGMEM merge_logo[] = {
0x01, 0x00, 0x01, 0x01, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00
};

uint8_t current_wpm = 0;

static void print_status_narrow(void) {
oled_set_cursor(0,1);
oled_write_raw_P(merge_logo, sizeof(merge_logo));
Expand Down Expand Up @@ -108,7 +110,6 @@ static void print_status_narrow(void) {

bool oled_task_kb(void) {
if (!oled_task_user()) { return false; }
current_wpm = get_current_wpm();
if (is_keyboard_master()) {
print_status_narrow();
//render_logo();
Expand Down

0 comments on commit 2106acc

Please sign in to comment.