diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-11-18 08:16:57 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-11-18 08:16:57 +0200 |
| commit | 53b5ef734132b543838e1663fe96d70457d8a62b (patch) | |
| tree | fceae44c3a606a1bd8c4b514eb88e827453ca151 /Software/Embedded_SW/Embedded/Modules/Control | |
| parent | 0c43f6919cf12f126f501d84fb76c940b8e9c7bb (diff) | |
| download | Tango-53b5ef734132b543838e1663fe96d70457d8a62b.tar.gz Tango-53b5ef734132b543838e1663fe96d70457d8a62b.zip | |
my pc changes. HardwareBlower with a heating voltage
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Modules/Control/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.c b/Software/Embedded_SW/Embedded/Modules/Control/control.c index 78cdd5324..1e9237320 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/control.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/control.c @@ -202,7 +202,7 @@ uint32_t AddControlCallback( ControlCBFunction Callback, CTRL_TIMING_ENUM CtrlF unsigned int key; uint32_t device_i; - uint32_t deviceId = 0xFFFFFFFF; + uint32_t deviceId = 0xFF; for(device_i = 0;device_i < MAX_TANGO_CONTROL_DEVICES;device_i++) { if (ControlArray[device_i].ControlActive == false) @@ -211,8 +211,8 @@ uint32_t AddControlCallback( ControlCBFunction Callback, CTRL_TIMING_ENUM CtrlF break; } } - if (deviceId == 0xFFFFFFFF) - return 0xFFFFFFFF; + if (deviceId == 0xFF) + return 0xFF; key = GateMutex_enter(gateControlDB); ControlArray[deviceId].ControlTiming = CtrlFrequency; ControlArray[deviceId].ControlCallbackPtr = Callback; |
