From 87ff61a8a6e572d3c6a5befd655a2b39280fe83d Mon Sep 17 00:00:00 2001 From: daid Date: Wed, 22 Aug 2012 10:54:55 +0200 Subject: [PATCH] Fix for #201 --- Marlin/ultralcd.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/ultralcd.pde b/Marlin/ultralcd.pde index e050c6125d..eee89237d8 100644 --- a/Marlin/ultralcd.pde +++ b/Marlin/ultralcd.pde @@ -2967,7 +2967,7 @@ char *itostr4(const int &xx) // convert float to string with +1234.5 format char *ftostr51(const float &x) { - int xx=x*10; + long xx=x*10; conv[0]=(xx>=0)?'+':'-'; xx=abs(xx); conv[1]=(xx/10000)%10+'0'; @@ -2983,7 +2983,7 @@ char *ftostr51(const float &x) // convert float to string with +123.45 format char *ftostr52(const float &x) { - int xx=x*100; + long xx=x*100; conv[0]=(xx>=0)?'+':'-'; xx=abs(xx); conv[1]=(xx/10000)%10+'0';