♻️ Set Progress without LCD (#24767)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
Scott Lahteine
parent
b0f02b8f9e
commit
8481264566
@ -73,10 +73,10 @@ const char* i8tostr3rj(const int8_t x) {
|
||||
}
|
||||
|
||||
#if HAS_PRINT_PROGRESS_PERMYRIAD
|
||||
// Convert unsigned 16-bit permyriad to percent with 100 / 23 / 23.4 / 3.45 format
|
||||
// Convert unsigned 16-bit permyriad to percent with 100 / 23.4 / 3.45 format
|
||||
const char* permyriadtostr4(const uint16_t xx) {
|
||||
if (xx >= 10000)
|
||||
return "100";
|
||||
return " 100"; // space to keep 4-width alignment
|
||||
else if (xx >= 1000) {
|
||||
conv[3] = DIGIMOD(xx, 1000);
|
||||
conv[4] = DIGIMOD(xx, 100);
|
||||
|
Reference in New Issue
Block a user