From 7776a945fa5d1afda8473cec2293049a788b6b0c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 12 Apr 2026 22:33:50 +0000 Subject: [PATCH] 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> --- users/timfee/timfee.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/timfee/timfee.c b/users/timfee/timfee.c index 68e3d63b..01cf5f72 100644 --- a/users/timfee/timfee.c +++ b/users/timfee/timfee.c @@ -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);