From d992dfe7d59b1ec24e1c40e22f05e3f709c35b22 Mon Sep 17 00:00:00 2001
From: Marcio Teixeira <marcio@alephobjects.com>
Date: Sat, 30 Mar 2019 12:00:31 -0600
Subject: [PATCH] Use the percent util func in the string func. (#13523)

---
 Marlin/src/core/utility.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/src/core/utility.cpp b/Marlin/src/core/utility.cpp
index 565eff0314..261a27eefb 100644
--- a/Marlin/src/core/utility.cpp
+++ b/Marlin/src/core/utility.cpp
@@ -59,7 +59,7 @@ void safe_delay(millis_t ms) {
 
   // Convert a full-range unsigned 8bit int to a percentage
   char* ui8tostr_percent(const uint8_t i) {
-    const uint16_t percent = 100 * i / 255;
+    const uint8_t percent = ui8_to_percent(i);
     conv[3] = RJDIGIT(percent, 100);
     conv[4] = RJDIGIT(percent, 10);
     conv[5] = DIGIMOD(percent, 1);
-- 
GitLab