mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Wait on the correct netid for the correct time for serial numbers
Serial number decoding not implemented yet
This commit is contained in:
+6
-1
@@ -122,6 +122,9 @@ bool Device::open() {
|
||||
if(!com)
|
||||
return false;
|
||||
|
||||
if(settings)
|
||||
settings->refresh();
|
||||
|
||||
return com->open();
|
||||
}
|
||||
|
||||
@@ -129,12 +132,14 @@ bool Device::close() {
|
||||
if(!com)
|
||||
return false;
|
||||
|
||||
settings = nullptr;
|
||||
|
||||
return com->close();
|
||||
}
|
||||
|
||||
bool Device::goOnline() {
|
||||
std::string serial;
|
||||
while(!com->getSerialNumberSync(serial, std::chrono::milliseconds(500))) {
|
||||
while(!com->getSerialNumberSync(serial)) {
|
||||
std::cout << "Serial number not here yet" << std::endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user