git-svn-id: svn://db.shs.com.ru/pip@272 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user