Skip to content

Commit 6188739

Browse files
Serial: More debugging
1 parent a8269d6 commit 6188739

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

publish.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'maven-publish'
22

33
ext.licenseFile = files("$rootDir/LICENSE.txt")
44

5-
def pubVersion = '2.3.5'
5+
def pubVersion = '2.3.6'
66

77
def outputsFolder = file("$buildDir/allOutputs")
88

src/main/native/cpp/CANBridgeUtils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ int parse_serial_com_port(const std::string& in) {
109109
}
110110
catch(const std::exception& e)
111111
{
112-
std::cerr << "parse_serial_com_port: Error running stoi: " << e.what() << '\n';
112+
std::cerr << "parse_serial_com_port: Error running stoi: \'" << e.what() << "\' on string: \'" + num + "\' with original string: \'" + in + "\'\n";
113113
}
114114

115115
return returnval;

src/main/native/cpp/Drivers/Serial/SerialDriver.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ std::vector<CANDeviceDetail> SerialDriver::GetDevices()
5151

5252
std::vector<serial::PortInfo> found = serial::list_ports();
5353
for (auto& dev : found) {
54+
std::cout << "Found serial device with hardware ID: " + dev.hardware_id + '\n';
5455
if (parse_serial_com_port(dev.port) != -1 && dev.hardware_id.compare(SparkMax_HardwareId) == 0) {
5556
std::string name("SPARK MAX");
5657
retval.push_back({dev.port, name, this->GetName()});

vendordeps/CANBridge.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"fileName": "CANBridge.json",
33
"name": "CANBridge",
4-
"version": "2.3.5",
4+
"version": "2.3.6",
55
"uuid": "34b37c7c-8acc-405f-9631-d21f20dc59d8",
66
"mavenUrls": [
77
"http://www.revrobotics.com/content/sw/max/sdk/maven/"

0 commit comments

Comments
 (0)