diff --git a/src/io/piconnection.cpp b/src/io/piconnection.cpp index b64da786..655b55d7 100755 --- a/src/io/piconnection.cpp +++ b/src/io/piconnection.cpp @@ -1035,6 +1035,7 @@ void PIConnection::DevicePool::deviceReaded(PIConnection::DevicePool::DeviceData void PIConnection::splitFullPathWithMode(PIString fpwm, PIString * full_path, PIIODevice::DeviceMode * mode) { PIIODevice::DeviceMode dm = PIIODevice::ReadWrite; + piCout << "SPLIT" << fpwm; if (fpwm.find("(") > 0 && fpwm.find(")") > 0) { PIString dms(fpwm.right(fpwm.length() - fpwm.find("(")).takeRange("(", ")").trim().toLowerCase().removeAll(" ")); //piCout << dms; @@ -1042,8 +1043,9 @@ void PIConnection::splitFullPathWithMode(PIString fpwm, PIString * full_path, PI dm = PIIODevice::ReadOnly; if (dms == "w" || dms == "wo" || dms == "write" || dms == "writeonly") dm = PIIODevice::WriteOnly; - fpwm.cutRight(fpwm.length() - fpwm.find("(") + 1).trim(); + fpwm.cutRight(fpwm.length() - fpwm.find("(")).trim(); } + piCout << "SPLIT" << fpwm; if (full_path) *full_path = fpwm; if (mode) *mode = dm; }