daid пре 11 година
родитељ
комит
87ff61a8a6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      Marlin/ultralcd.pde

+ 2
- 2
Marlin/ultralcd.pde Прегледај датотеку

@@ -2967,7 +2967,7 @@ char *itostr4(const int &xx)
2967 2967
 //  convert float to string with +1234.5 format
2968 2968
 char *ftostr51(const float &x)
2969 2969
 {
2970
-  int xx=x*10;
2970
+  long xx=x*10;
2971 2971
   conv[0]=(xx>=0)?'+':'-';
2972 2972
   xx=abs(xx);
2973 2973
   conv[1]=(xx/10000)%10+'0';
@@ -2983,7 +2983,7 @@ char *ftostr51(const float &x)
2983 2983
 //  convert float to string with +123.45 format
2984 2984
 char *ftostr52(const float &x)
2985 2985
 {
2986
-  int xx=x*100;
2986
+  long xx=x*100;
2987 2987
   conv[0]=(xx>=0)?'+':'-';
2988 2988
   xx=abs(xx);
2989 2989
   conv[1]=(xx/10000)%10+'0';

Loading…
Откажи
Сачувај