aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-08-13 12:10:25 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-08-13 12:10:25 +0300
commit34eb8e03fe22ee20f5020c8be2abbab7ac69117e (patch)
tree1a097739f2384c67561a2576c262c836db2b0941 /Software/Embedded_SW/Embedded/Modules
parentfe8490b1c9fe216841594565f4bda32062e3378d (diff)
downloadTango-34eb8e03fe22ee20f5020c8be2abbab7ac69117e.tar.gz
Tango-34eb8e03fe22ee20f5020c8be2abbab7ac69117e.zip
improve heaters reset
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules')
-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 93f185c45..ff5af5aac 100644
--- a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
+++ b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_print.c
@@ -239,10 +239,10 @@ uint32_t HeaterCommandRequestMessage(int HeaterId, bool OnOff, int Temperature)
}
else if (OnOff == HEATER_OFF)//((HeaterState == HEATER_ON)&& (OnOff == HEATER_OFF)) //stop heating
{
- //turn off the heater
- HeatersSingleHeaterEnd(HeaterId);
//stop the control
HeaterPIDConfig[HeaterId].m_SetParam = 0;
+ //turn off the heater
+ HeatersSingleHeaterEnd(HeaterId);
}
/*else //heater off, and the heater is not ready yet
{