diff --git a/src_main/io/pican.cpp b/src_main/io/pican.cpp index 7aaed715..8f22b80b 100644 --- a/src_main/io/pican.cpp +++ b/src_main/io/pican.cpp @@ -120,7 +120,7 @@ int PICAN::CANID() const { PIString PICAN::constructFullPathDevice() const { PIString ret; - ret << path() << ":" << CANID(); + ret << path() << ":" << PIString::fromNumber(CANID(),16); return ret; } @@ -131,7 +131,7 @@ void PICAN::configureFromFullPathDevice(const PIString & full_path) { PIString p(pl[i]); switch (i) { case 0: setPath(p); break; - case 1: setCANID(p.toInt()); break; + case 1: setCANID(p.toInt(16)); break; default: break; } }