aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-07-15 15:17:46 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-07-15 15:17:46 +0300
commit2cee68f95ca7cb2dd1ebad34fd80cc583a08c02e (patch)
tree127b949cc836bd7d70bc1deeb8970383b63ae46d /Software/Embedded_SW/Embedded/Modules
parent3a674ea0ef5c71843bd876da3bb5e0b0f535110e (diff)
downloadTango-2cee68f95ca7cb2dd1ebad34fd80cc583a08c02e.tar.gz
Tango-2cee68f95ca7cb2dd1ebad34fd80cc583a08c02e.zip
coordinate between heaters process and job progress (semaphors might be needed)
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
index 80df0c536..351fc3035 100644
--- a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
@@ -320,6 +320,10 @@ bool HeaterCheckReady(void)
void HeaterPrepareReady(void)
{
int i;
+ if (GetHeatersPrepareWaiting == false)
+ {
+ return;
+ }
for (i=0;i<MAX_HEATERS_NUM;i++)
{
if (HeaterReady[i] == false)