diff --git a/src/ebusd/ebusd.cpp b/src/ebusd/ebusd.cpp index 309fd12d..f6854405 100644 --- a/src/ebusd/ebusd.cpp +++ b/src/ebusd/ebusd.cpp @@ -58,7 +58,7 @@ void define_args() "\tebus device (serial or network) [/dev/ttyUSB0]"); A.addOption("nodevicecheck", "n", OptVal(false), dt_bool, ot_none, - "disable valid ebus device test\n"); + "disable test of local ebus device\n"); A.addOption("acquiretimeout", "", OptVal(9400), dt_long, ot_mandatory, "bus acquisition timeout in 'us' [9400]"); diff --git a/src/lib/ebus/port.cpp b/src/lib/ebus/port.cpp index 62447af9..e332a5d7 100644 --- a/src/lib/ebus/port.cpp +++ b/src/lib/ebus/port.cpp @@ -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);