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:
copilot-swe-agent[bot] 2026-04-12 22:33:50 +00:00 committed by GitHub
commit 7776a945fa
Failed to generate hash of commit

View file

@ -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);