From 028538cc90bde28fa62c08ea53136691a94f6894 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Thu, 6 Aug 2020 17:02:12 -0400 Subject: [PATCH] Update to libicsneo v0.2.0 --- src/main.cpp | 7 +++---- third-party/libicsneo | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f19c4c7..c7d792b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -223,9 +223,8 @@ void searchForDevices() { }); if(!newDevice.device->open() || !newDevice.device->goOnline()) { if(firstTimeFailedToOpen) { - icsneo::APIError err; - icsneo::GetLastError(err); - LOGF(LOG_INFO, "%s failed to connect. Will keep trying...\n%s\n", newDevice.device->describe().c_str(), err.describe().c_str()); + const std::string err = icsneo::GetLastError().describe(); + LOGF(LOG_INFO, "%s failed to connect. Will keep trying...\n%s\n", newDevice.device->describe().c_str(), err.c_str()); failedToOpen.push_back(serial); } continue; @@ -321,7 +320,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..b09f856 160000 --- a/third-party/libicsneo +++ b/third-party/libicsneo @@ -1 +1 @@ -Subproject commit 2a47b6f179699f67dc8c39634ea245c49b02ec0f +Subproject commit b09f85693fef5e5513f099648cdf165ade5d20f2