Use libicsneo with checksum failure logging code

Checksum failures will log to stderr
This commit is contained in:
Paul Hollinsky
2019-11-06 10:25:18 -05:00
parent a69c41c9d5
commit f7e4af48c2
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -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)) {