From 99554aaefd61f29be38669d46c7e4a573bec311f Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Tue, 29 Jan 2019 18:33:11 +0200 Subject: Version 1.3.5.3: IDS handling, control track and fixing, and other changes. --- Software/Embedded_SW/Embedded/Modules/Control/control.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Software/Embedded_SW/Embedded/Modules/Control') 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; -- cgit v1.3.1