diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-11-11 17:37:27 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-11-11 17:37:27 +0200 |
| commit | 9699b74d7cf87fef466cb6606fe9e110e3b15120 (patch) | |
| tree | 25e64a9a7c4b8bd819489d44a954d7a6a5421f52 /Software/Embedded_SW/Embedded/Modules/Control/control.c | |
| parent | d39c39e3868acd5da5f636bb7f5b49de673bb10f (diff) | |
| download | Tango-9699b74d7cf87fef466cb6606fe9e110e3b15120.tar.gz Tango-9699b74d7cf87fef466cb6606fe9e110e3b15120.zip | |
reset control with eNoControl value
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/control.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Control/control.c | 3 |
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; |
