mirror of
https://github.com/intrepidcs/icsscand.git
synced 2026-08-05 01:28:26 +02:00
Use libicsneo with checksum failure logging code
Checksum failures will log to stderr
This commit is contained in:
+2
-3
@@ -223,8 +223,7 @@ void searchForDevices() {
|
|||||||
});
|
});
|
||||||
if(!newDevice.device->open() || !newDevice.device->goOnline()) {
|
if(!newDevice.device->open() || !newDevice.device->goOnline()) {
|
||||||
if(firstTimeFailedToOpen) {
|
if(firstTimeFailedToOpen) {
|
||||||
icsneo::APIError err;
|
icsneo::APIEvent err = icsneo::GetLastError();
|
||||||
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());
|
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);
|
||||||
}
|
}
|
||||||
@@ -320,7 +319,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...f16ee630ee
Reference in New Issue
Block a user