aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/control.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-01-29 18:33:11 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-01-29 18:33:11 +0200
commit99554aaefd61f29be38669d46c7e4a573bec311f (patch)
tree16bf2b5582424c961f87f4dc543f36f2167e6d08 /Software/Embedded_SW/Embedded/Modules/Control/control.c
parent4b7e196fe51e5a93b3c8090bbb43d05e3e6fd370 (diff)
downloadTango-99554aaefd61f29be38669d46c7e4a573bec311f.tar.gz
Tango-99554aaefd61f29be38669d46c7e4a573bec311f.zip
Version 1.3.5.3: IDS handling, control track and fixing, and other changes.
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/control.c')
-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 fc843b78b..b57c6c8b0 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/control.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c
@@ -215,7 +215,10 @@ uint32_t AddControlCallback( ControlCBFunction Callback, CTRL_TIMING_ENUM CtrlF
}
}
if (deviceId == 0xFF)
+ {
+ LOG_ERROR(deviceId, "Add Callback failed");
return 0xFF;
+ }
key = GateMutex_enter(gateControlDB);
ControlArray[deviceId].ControlTiming = CtrlFrequency;
ControlArray[deviceId].ControlCallbackPtr = Callback;