diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-12-27 20:29:55 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-12-27 20:29:55 +0200 |
| commit | dee982787439eea46d03624c1f69a38eb13a50ee (patch) | |
| tree | d75c60fef068c2b4d9600950cc375b4042e7b673 /Software/Embedded_SW/Embedded/Modules | |
| parent | 4c2af21aa676f084bd53bf0c5786de17295b5033 (diff) | |
| download | Tango-dee982787439eea46d03624c1f69a38eb13a50ee.tar.gz Tango-dee982787439eea46d03624c1f69a38eb13a50ee.zip | |
prepare percentage
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c | 4 | ||||
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c | 2 |
2 files changed, 3 insertions, 3 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; diff --git a/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c b/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c index aaa371aac..19507775e 100644 --- a/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c +++ b/Software/Embedded_SW/Embedded/Modules/IDS/IDS_print.c @@ -481,7 +481,7 @@ c. Go to step 2.a x Segment.BrushStopsCount. if (temp<MaxDifference) MaxDifference = temp; } - Report("IdsPrepareProgress" ,__FILE__,__LINE__,(int)(MaxDifference*100),RpWarning,0,0); + //Report("IdsPrepareProgress" ,__FILE__,__LINE__,(int)(MaxDifference*100),RpWarning,0,0); return MaxDifference; } |
