You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (device->GetOutputChannelByName(aChannel, inputChannelId) == PLUS_SUCCESS)
197
203
{
198
204
// Found it!
199
-
thisDevice->AddInputChannel(aChannel);
200
205
break;
201
206
}
202
207
}
208
+
if (aChannel == NULL)
209
+
{
210
+
LOG_ERROR("Device " << deviceElement->GetAttribute("Id") << " is specified to use channel " << inputChannelId << " as input, but an output channel by this Id does not exist");
211
+
return PLUS_FAIL;
212
+
}
213
+
if (thisDevice->AddInputChannel(aChannel) != PLUS_SUCCESS)
214
+
{
215
+
LOG_ERROR("Failed to add input channel " << inputChannelId << " to device " << deviceElement->GetAttribute("Id"));
0 commit comments