aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/StateMachines/Initialization
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-02-21 09:32:18 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-02-21 09:32:18 +0200
commitc0fd77fecad0bf9cdc77d09cad4f5ea8cc414e17 (patch)
treecc8c36ef972368dbb24997d0ed2dd63e5e10501b /Software/Embedded_SW/Embedded/StateMachines/Initialization
parentfab9ae9a672bf7ca083f5042facf914295a20b50 (diff)
downloadTango-c0fd77fecad0bf9cdc77d09cad4f5ea8cc414e17.tar.gz
Tango-c0fd77fecad0bf9cdc77d09cad4f5ea8cc414e17.zip
send power off update at least once every 1 sec
Diffstat (limited to 'Software/Embedded_SW/Embedded/StateMachines/Initialization')
-rw-r--r--Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c
index 5cc94a909..d737b3172 100644
--- a/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c
+++ b/Software/Embedded_SW/Embedded/StateMachines/Initialization/PowerOffSequence.c
@@ -91,11 +91,7 @@ uint32_t PowerOffScheduler(uint32_t IfIndex, uint32_t BusyFlag)
StoredMachineState = PowerOffMachineState;
PowerOffSequenceStateMachine (PowerOffMachineState);
}
- if (UpdateCounter++ >= UPDATE_TIMEOUT)
- {
- UpdateCounter = 0;
- PowerDownUpdate(PowerOffMachineState);
- }
+ PowerDownUpdate(PowerOffMachineState);
return OK;
}
/*******************************************************************************************************/