Skip to content

Commit 6687910

Browse files
authored
Merge pull request #8 from ThadHouse/fixupcannames
Update to new CAN Bus names
2 parents dc2a534 + 7807472 commit 6687910

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

allwpilib

Submodule allwpilib updated 2091 files

powerdistribution/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ bool CanState::startUvLoop(unsigned bus, const nt::NetworkTableInstance& ntInst,
142142
}
143143

144144
ifreq ifr;
145-
std::snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "can%u", busId);
145+
std::snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "can_s%u", busId);
146146

147147
if (ioctl(socketHandle, SIOCGIFINDEX, &ifr) == -1) {
148148
return false;

0 commit comments

Comments
 (0)