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

This commit is contained in:
2016-09-26 17:18:01 +00:00
parent e32af525d1
commit 8aad1b413c

View File

@@ -861,6 +861,7 @@ int PIConnection::write(PIIODevice * dev, const PIByteArray & data) {
piCoutObj << "Null Device!"; piCoutObj << "Null Device!";
return -1; return -1;
} }
if (!dev->isOpened()) return -1;
if (!dev->canWrite()) { if (!dev->canWrite()) {
piCoutObj << "Device \"" << dev->constructFullPath() << "\" can`t write!"; piCoutObj << "Device \"" << dev->constructFullPath() << "\" can`t write!";
return -1; return -1;