fix: disable device test for network device as default.

This commit is contained in:
Roland Jax
2015-01-04 13:43:12 +01:00
parent 4e9b207767
commit 9fcff1221e
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -245,9 +245,10 @@ Port::Port(const string deviceName, const bool noDeviceCheck,
{
m_device = NULL;
if (strchr(deviceName.c_str(), '/') == NULL &&
strchr(deviceName.c_str(), ':') != NULL)
if (strchr(deviceName.c_str(), '/') == NULL && strchr(deviceName.c_str(), ':') != NULL) {
setType(dt_network);
m_noDeviceCheck = true;
}
else
setType(dt_serial);