aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c')
-rw-r--r--Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c
index dcb91ea55..454204229 100644
--- a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c
+++ b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c
@@ -21,6 +21,7 @@
#include "Common/SWUpdate/FirmwareUpgrade.h"
#include "StateMachines/Printing/PrintingSTM.h"
+#include "PowerIdle.h"
#include "InitSequence.h"
#include "drivers/I2C_Communication/DAC/Blower.h"
@@ -140,6 +141,7 @@ uint32_t PowerOffWaitForProcessesCallback(uint32_t IfIndex, uint32_t BusyFlag)
(WaitForProcessCounter++<900))
{
REPORT_MSG (PowerOffMachineState, "On going processes, wait for end of process");
+ resetIdleCounter();
}
else
{
@@ -224,6 +226,7 @@ uint32_t PowerOffWaitForTemperatureCallback(uint32_t IfIndex, uint32_t BusyFlag)
if ((MaxTemp>POWER_OFF_TEMP_THRESHOLD)&&(WaitForProcessCounter++<1800))
{
Report("On going cooling down, wait for end of cooling",__FILE__,__LINE__,(int)MaxTemp,RpWarning,(int)WaitForProcessCounter,0);
+ resetIdleCounter();
}
else
{