aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Heaters
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-12-27 20:29:55 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-12-27 20:29:55 +0200
commitdee982787439eea46d03624c1f69a38eb13a50ee (patch)
treed75c60fef068c2b4d9600950cc375b4042e7b673 /Software/Embedded_SW/Embedded/Modules/Heaters
parent4c2af21aa676f084bd53bf0c5786de17295b5033 (diff)
downloadTango-dee982787439eea46d03624c1f69a38eb13a50ee.tar.gz
Tango-dee982787439eea46d03624c1f69a38eb13a50ee.zip
prepare percentage
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Heaters')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
index d48139255..f7fb7119c 100644
--- a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
@@ -585,12 +585,12 @@ double HeatersPrepareProgress(void)
{
if (MillisecGetTemperatures(HeaterId2PT100Id[i])>=HeaterCmd[i].targettemperatue)
continue;
- temp = MillisecGetTemperatures(HeaterId2PT100Id[i])/HeaterCmd[i].targettemperatue;
+ temp = (double)(MillisecGetTemperatures(HeaterId2PT100Id[i]))/(double)(HeaterCmd[i].targettemperatue);
if (temp<MaxDifference)
MaxDifference = temp;
}
}
- Report("HeatersPrepareProgress" ,__FILE__,__LINE__,(int)(MaxDifference*100),RpWarning,0,0);
+ //Report("HeatersPrepareProgress" ,__FILE__,__LINE__,(int)(MaxDifference*100),RpWarning,0,0);
return MaxDifference;