git-svn-id: svn://db.shs.com.ru/pip@127 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2015-05-06 08:28:50 +00:00
parent 53d8c53a50
commit 6283d78b03
2 changed files with 6 additions and 3 deletions

View File

@@ -1035,7 +1035,6 @@ 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;
@@ -1045,7 +1044,6 @@ void PIConnection::splitFullPathWithMode(PIString fpwm, PIString * full_path, PI
dm = PIIODevice::WriteOnly;
fpwm.cutRight(fpwm.length() - fpwm.find("(")).trim();
}
piCout << "SPLIT" << fpwm;
if (full_path) *full_path = fpwm;
if (mode) *mode = dm;
}