Author SHA1 Message Date
Paul Hollinsky f7e4af48c2 Use libicsneo with checksum failure logging code
Checksum failures will log to stderr
2019-11-06 10:25:18 -05:00
Paul Hollinsky a69c41c9d5 v2.0.2
Use libicsneo v0.1.2 to resolve LEDs not indicating device status
2019-09-04 13:32:48 -04:00
5 changed files with 8 additions and 6 deletions
+3
View File
@@ -1,3 +1,6 @@
v2.0.2
Use libicsneo v0.1.2 to resolve LEDs not indicating device status
v2.0.1
Set timeout tv_sec instead of tv_usec for compatibility with older kernels
+1 -1
View File
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.2)
project(libicsneo-socketcan-daemon VERSION 2.0.1)
project(libicsneo-socketcan-daemon VERSION 2.0.2)
set(CMAKE_CXX_STANDARD 11)
+1 -1
View File
@@ -1,4 +1,4 @@
Version 2.0.1
Version 2.0.2
This is the usermode daemon for the Intrepid Control Systems SocketCAN support. This daemon requires that ```intrepid.ko``` is loaded on your system.
+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)) {