summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-07-09 18:26:48 +0100
committerGitHub <noreply@github.com>2022-07-09 18:26:48 +0100
commit2106acc24a5c223a5429ea5413bd78f6f0ad038c (patch)
tree79a7aef45ea87ddf76b8ff55ecddc4f09ce4b62d /keyboards
parent561c5e1d7adfee1e318dd5b732738c35778d575e (diff)
downloadqmk_firmware-2106acc24a5c223a5429ea5413bd78f6f0ad038c.tar.gz
qmk_firmware-2106acc24a5c223a5429ea5413bd78f6f0ad038c.zip
merge/um80 - Fix WPM issues in configurator builds (#17608)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/merge/um80/um80.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/keyboards/merge/um80/um80.c b/keyboards/merge/um80/um80.c
index 4bb925c6c9..557197c89d 100644
--- a/keyboards/merge/um80/um80.c
+++ b/keyboards/merge/um80/um80.c
@@ -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();
@@ -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));
@@ -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();