diff --git a/src/main.cpp b/src/main.cpp index 3e50184..dac22d7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -223,8 +223,7 @@ void searchForDevices() { }); if(!newDevice.device->open() || !newDevice.device->goOnline()) { if(firstTimeFailedToOpen) { - icsneo::APIError err; - icsneo::GetLastError(err); + icsneo::APIEvent err = icsneo::GetLastError(); LOGF(LOG_INFO, "%s failed to connect. Will keep trying...\n%s\n", newDevice.device->describe().c_str(), err.describe().c_str()); failedToOpen.push_back(serial); } @@ -320,7 +319,7 @@ void searchForDevices() { openDevices.end() ); - for(const auto& err : icsneo::GetErrors()) { + for(const auto& err : icsneo::GetEvents()) { bool forErrorDevice = false; for(const auto& dev : failedToOpen) { if(err.isForDevice(dev)) { diff --git a/third-party/libicsneo b/third-party/libicsneo index 2a47b6f..f16ee63 160000 --- a/third-party/libicsneo +++ b/third-party/libicsneo @@ -1 +1 @@ -Subproject commit 2a47b6f179699f67dc8c39634ea245c49b02ec0f +Subproject commit f16ee630eee5abc967deb11d471173e57014f201