aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/General/MachineStatus.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-10-21 12:39:52 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-10-21 12:39:52 +0300
commite207e9cb2b8cb05dbdb5378e2fd00b5e112c54e7 (patch)
tree1a02b2f8c2d1531026cabf89d1a6bc5fb5f63fa3 /Software/Embedded_SW/Embedded/Modules/General/MachineStatus.c
parent32b6f8750aef91fa98d65e175d8c988e1072af54 (diff)
downloadTango-e207e9cb2b8cb05dbdb5378e2fd00b5e112c54e7.tar.gz
Tango-e207e9cb2b8cb05dbdb5378e2fd00b5e112c54e7.zip
fix machine status
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/General/MachineStatus.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/General/MachineStatus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/General/MachineStatus.c b/Software/Embedded_SW/Embedded/Modules/General/MachineStatus.c
index f04483361..ae4b34b44 100644
--- a/Software/Embedded_SW/Embedded/Modules/General/MachineStatus.c
+++ b/Software/Embedded_SW/Embedded/Modules/General/MachineStatus.c
@@ -42,6 +42,11 @@ MachineState StoredMachineStatus = MACHINE_STATE__PowerUp;
bool SetMAchineStateProblem = false;
void SetMachineStatus (MachineState State)
{
+ if (StoredMachineStatus == MACHINE_STATE__PowerOff)
+ {
+ ReportWithPackageFilter(GeneralFilter,"not changing MachineStatus while on power down",__FILE__,__LINE__,State,RpWarning,StoredMachineStatus, 0);
+ return;
+ }
if (State == MACHINE_STATE__Ready)
{
if ((GetMachineState()<MACHINE_STATE_MACHINE_READY_TO_DYE)&&(GetMachineState()!=MACHINE_STATE_NO_PROCESS_PARAMS))