aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-11-11 17:37:27 +0200
committerShlomo Hecht <shlomo@twine-s.com>2018-11-11 17:37:27 +0200
commit9699b74d7cf87fef466cb6606fe9e110e3b15120 (patch)
tree25e64a9a7c4b8bd819489d44a954d7a6a5421f52 /Software/Embedded_SW/Embedded/Modules/Control
parentd39c39e3868acd5da5f636bb7f5b49de673bb10f (diff)
downloadTango-9699b74d7cf87fef466cb6606fe9e110e3b15120.tar.gz
Tango-9699b74d7cf87fef466cb6606fe9e110e3b15120.zip
reset control with eNoControl value
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.c b/Software/Embedded_SW/Embedded/Modules/Control/control.c
index bb7bbaa92..78cdd5324 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/control.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c
@@ -363,6 +363,9 @@ uint32_t ControlLoop(uint32_t tick)
LOG_ERROR (Device_i, "Invalid callback ptr");
}
break;
+ case eNoControl:
+ memset (&ControlArray[Device_i],0,sizeof(ControlDeviceStruc) );
+ break;
default:
LOG_ERROR (ControlArray[Device_i].ControlTiming, "Invalid control timing value");
break;