PIIODevice fix
git-svn-id: svn://db.shs.com.ru/pip@125 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -142,6 +142,7 @@ bool PIBinaryLog::threadedRead(uchar *readed, int size) {
|
||||
break;
|
||||
case PlayVariableSpeed:
|
||||
delay = lastrecord.timestamp.toMilliseconds() - play_time;
|
||||
piCoutObj << "delay" << delay;
|
||||
double cdelay;
|
||||
int dtc;
|
||||
if (is_started) {
|
||||
|
||||
@@ -897,7 +897,8 @@ PIIODevice * PIConnection::DevicePool::addDevice(PIConnection * parent, const PI
|
||||
if (!fake) {
|
||||
dd->dev->close();
|
||||
dd->dev->open((PIIODevice::DeviceMode)pmode);
|
||||
}
|
||||
} else
|
||||
dd->dev->setMode((PIIODevice::DeviceMode)pmode);
|
||||
if (need_start && start) {
|
||||
if (!fake) dd->rthread->start();
|
||||
dd->started = true;
|
||||
|
||||
@@ -67,6 +67,9 @@ public:
|
||||
//! Current open mode of device
|
||||
DeviceMode mode() const {return mode_;}
|
||||
|
||||
//! Set open mode of device
|
||||
void setMode(DeviceMode m) {mode_ = m;}
|
||||
|
||||
//! Current path of device
|
||||
PIString path() const {return property(PIStringAscii("path")).toString();}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user