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

This commit is contained in:
2016-12-21 12:04:20 +00:00
parent 9e6cdee552
commit 57a9657705
5 changed files with 65 additions and 7 deletions

View File

@@ -232,13 +232,13 @@ void PIIODevice::run() {
return;
}
if (!thread_started_) {
msleep(5);
piMSleep(5);
//cout << "not started\n";
return;
}
readed_ = read(buffer_tr.data(), buffer_tr.size_s());
if (readed_ <= 0) {
msleep(10);
piMSleep(10);
//cout << readed_ << ", " << errno << ", " << errorString() << endl;
return;
}