diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-07-15 13:34:46 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-07-15 13:34:46 +0300 |
| commit | d86a63d6ec2c74b5e0edd49e22a5acd04c6b6f9c (patch) | |
| tree | 23b7d234a81bbb0e7a4e2edf7ed94f49ae1e8b0f /Software/Embedded_SW/Embedded/StateMachines | |
| parent | 42155b356d93de34d2d30cdc9e650bfcd9e6db68 (diff) | |
| download | Tango-d86a63d6ec2c74b5e0edd49e22a5acd04c6b6f9c.tar.gz Tango-d86a63d6ec2c74b5e0edd49e22a5acd04c6b6f9c.zip | |
fix thread PID handling on job start. cleaning improved. stub for watchdog added
Diffstat (limited to 'Software/Embedded_SW/Embedded/StateMachines')
| -rw-r--r-- | Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c | 3 |
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 169772480..7cec83bd8 100644 --- a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c +++ b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c @@ -34,6 +34,7 @@ #include "drivers/I2C_Communication/ADC_MUX/ADC_MUX.h" #include "drivers/Heater/TemperatureSensor.h" #include "drivers/Valves/Valve.h" +#include <Drivers/I2C_Communication/I2C.h> #include <Drivers/I2C_Communication/WHS_Card/D_Max5805_ADC_Blower/WHS_Blower.h> #include "StateMachines/Printing/PrintingSTM.h" @@ -492,6 +493,8 @@ uint32_t PowerOffTurnOffBlower(void) uint32_t PowerOffPowerOff(void) { int i; + Task_setPri (I2C_Task_Handle,-1); + for (i = 0;i<10;i++) { REPORT_MSG (10-i, "Power off in x seconds"); |
