git-svn-id: svn://db.shs.com.ru/pip@617 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -120,7 +120,7 @@ int PICAN::CANID() const {
|
|||||||
|
|
||||||
PIString PICAN::constructFullPathDevice() const {
|
PIString PICAN::constructFullPathDevice() const {
|
||||||
PIString ret;
|
PIString ret;
|
||||||
ret << path() << ":" << CANID();
|
ret << path() << ":" << PIString::fromNumber(CANID(),16);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ void PICAN::configureFromFullPathDevice(const PIString & full_path) {
|
|||||||
PIString p(pl[i]);
|
PIString p(pl[i]);
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case 0: setPath(p); break;
|
case 0: setPath(p); break;
|
||||||
case 1: setCANID(p.toInt()); break;
|
case 1: setCANID(p.toInt(16)); break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user