mirror of
https://github.com/qmk/qmk_userspace.git
synced 2026-04-22 11:30:23 -04:00
Fix WPM display digit conditions for clarity
Agent-Logs-Url: https://github.com/timfee/qmk_userspace/sessions/9b63344e-efb0-45fe-94c7-267e6fec3101 Co-authored-by: timfee <3246342+timfee@users.noreply.github.com>
This commit is contained in:
parent
9952e6a767
commit
7776a945fa
1 changed files with 2 additions and 2 deletions
|
|
@ -172,8 +172,8 @@ static void render_wpm(void) {
|
|||
oled_write_P(PSTR("WPM: "), false);
|
||||
uint8_t wpm = get_current_wpm();
|
||||
char buf[4];
|
||||
buf[0] = (wpm / 100) ? ('0' + wpm / 100) : ' ';
|
||||
buf[1] = (wpm / 10) ? ('0' + (wpm / 10) % 10) : ' ';
|
||||
buf[0] = (wpm >= 100) ? ('0' + wpm / 100) : ' ';
|
||||
buf[1] = (wpm >= 10) ? ('0' + (wpm / 10) % 10) : ' ';
|
||||
buf[2] = '0' + wpm % 10;
|
||||
buf[3] = '\0';
|
||||
oled_write_ln(buf, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue