mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-22 00:14:38 +00:00
merge/um80 - Fix WPM issues in configurator builds (#17608)
This commit is contained in:
parent
561c5e1d7a
commit
2106acc24a
1 changed files with 4 additions and 3 deletions
|
@ -16,6 +16,10 @@
|
||||||
|
|
||||||
#include "um80.h"
|
#include "um80.h"
|
||||||
|
|
||||||
|
#ifndef WPM_ENABLE
|
||||||
|
# define get_current_wpm() 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef OLED_ENABLE
|
#ifdef OLED_ENABLE
|
||||||
void suspend_power_down_kb(void) {
|
void suspend_power_down_kb(void) {
|
||||||
oled_off();
|
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
|
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) {
|
static void print_status_narrow(void) {
|
||||||
oled_set_cursor(0,1);
|
oled_set_cursor(0,1);
|
||||||
oled_write_raw_P(merge_logo, sizeof(merge_logo));
|
oled_write_raw_P(merge_logo, sizeof(merge_logo));
|
||||||
|
@ -108,7 +110,6 @@ static void print_status_narrow(void) {
|
||||||
|
|
||||||
bool oled_task_kb(void) {
|
bool oled_task_kb(void) {
|
||||||
if (!oled_task_user()) { return false; }
|
if (!oled_task_user()) { return false; }
|
||||||
current_wpm = get_current_wpm();
|
|
||||||
if (is_keyboard_master()) {
|
if (is_keyboard_master()) {
|
||||||
print_status_narrow();
|
print_status_narrow();
|
||||||
//render_logo();
|
//render_logo();
|
||||||
|
|
Loading…
Reference in a new issue