mirror of
https://github.com/intrepidcs/icsscand.git
synced 2026-08-05 01:28:26 +02:00
Update to libicsneo v0.2.0
This commit is contained in:
+3
-4
@@ -223,9 +223,8 @@ void searchForDevices() {
|
|||||||
});
|
});
|
||||||
if(!newDevice.device->open() || !newDevice.device->goOnline()) {
|
if(!newDevice.device->open() || !newDevice.device->goOnline()) {
|
||||||
if(firstTimeFailedToOpen) {
|
if(firstTimeFailedToOpen) {
|
||||||
icsneo::APIError err;
|
const std::string err = icsneo::GetLastError().describe();
|
||||||
icsneo::GetLastError(err);
|
LOGF(LOG_INFO, "%s failed to connect. Will keep trying...\n%s\n", newDevice.device->describe().c_str(), err.c_str());
|
||||||
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);
|
failedToOpen.push_back(serial);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -321,7 +320,7 @@ void searchForDevices() {
|
|||||||
openDevices.end()
|
openDevices.end()
|
||||||
);
|
);
|
||||||
|
|
||||||
for(const auto& err : icsneo::GetErrors()) {
|
for(const auto& err : icsneo::GetEvents()) {
|
||||||
bool forErrorDevice = false;
|
bool forErrorDevice = false;
|
||||||
for(const auto& dev : failedToOpen) {
|
for(const auto& dev : failedToOpen) {
|
||||||
if(err.isForDevice(dev)) {
|
if(err.isForDevice(dev)) {
|
||||||
|
|||||||
Vendored
+1
-1
Submodule third-party/libicsneo updated: 2a47b6f179...b09f85693f
Reference in New Issue
Block a user