Skip to content

Commit

Permalink
Serial: More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertychouskie committed Jul 1, 2024
1 parent a8269d6 commit 6188739
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'maven-publish'

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

def pubVersion = '2.3.5'
def pubVersion = '2.3.6'

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

Expand Down
2 changes: 1 addition & 1 deletion src/main/native/cpp/CANBridgeUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int parse_serial_com_port(const std::string& in) {
}
catch(const std::exception& e)
{
std::cerr << "parse_serial_com_port: Error running stoi: " << e.what() << '\n';
std::cerr << "parse_serial_com_port: Error running stoi: \'" << e.what() << "\' on string: \'" + num + "\' with original string: \'" + in + "\'\n";
}

return returnval;
Expand Down
1 change: 1 addition & 0 deletions src/main/native/cpp/Drivers/Serial/SerialDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ std::vector<CANDeviceDetail> SerialDriver::GetDevices()

std::vector<serial::PortInfo> found = serial::list_ports();
for (auto& dev : found) {
std::cout << "Found serial device with hardware ID: " + dev.hardware_id + '\n';
if (parse_serial_com_port(dev.port) != -1 && dev.hardware_id.compare(SparkMax_HardwareId) == 0) {
std::string name("SPARK MAX");
retval.push_back({dev.port, name, this->GetName()});
Expand Down
2 changes: 1 addition & 1 deletion vendordeps/CANBridge.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileName": "CANBridge.json",
"name": "CANBridge",
"version": "2.3.5",
"version": "2.3.6",
"uuid": "34b37c7c-8acc-405f-9631-d21f20dc59d8",
"mavenUrls": [
"http://www.revrobotics.com/content/sw/max/sdk/maven/"
Expand Down

0 comments on commit 6188739

Please sign in to comment.