Explorar el Código

Fix issue in itostr4sign with numbers <100 (#6487)

The first character in the string wasn't blanked if the number went from >= 100 to <100, resulting in artefacts in the displayed string.
benlye hace 8 años
padre
commit
8c6b4537a6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/utility.cpp

+ 1
- 1
Marlin/utility.cpp Ver fichero

@@ -87,13 +87,13 @@ void safe_delay(millis_t ms) {
87 87
         conv[5] = DIGIMOD(xx, 10);
88 88
       }
89 89
       else {
90
+        conv[3] = ' ';
90 91
         conv[4] = ' ';
91 92
         if (xx >= 10) {
92 93
           conv[4] = neg ? '-' : ' ';
93 94
           conv[5] = DIGIMOD(xx, 10);
94 95
         }
95 96
         else {
96
-          conv[4] = ' ';
97 97
           conv[5] = neg ? '-' : ' ';
98 98
         }
99 99
       }

Loading…
Cancelar
Guardar