Skip to content

Commit

Permalink
Update field name to fit m_val pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
m10653 committed Dec 31, 2023
1 parent 59eff86 commit 3d97c0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions hal/src/main/java/edu/wpi/first/hal/CANAPITypes.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public enum CANDeviceType {
kIOBreakout(11),
kFirmwareUpdate(31);

public final int id;
public final int m_id;

CANDeviceType(int id) {
this.id = id;
this.m_id = id;
}
}

Expand Down Expand Up @@ -72,10 +72,10 @@ public enum CANManufacturer {
kAndyMark(15),
kVividHosting(16);

public final int id;
public final int m_id;

CANManufacturer(int id) {
this.id = id;
this.m_id = id;
}
}
}
4 changes: 2 additions & 2 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/CAN.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* calls.
*/
public class CAN implements Closeable {
public static final int kTeamManufacturer = CANAPITypes.CANManufacturer.kTeamUse.id;
public static final int kTeamDeviceType = CANAPITypes.CANDeviceType.kMiscellaneous.id;
public static final int kTeamManufacturer = CANAPITypes.CANManufacturer.kTeamUse.m_id;
public static final int kTeamDeviceType = CANAPITypes.CANDeviceType.kMiscellaneous.m_id;

private final int m_handle;

Expand Down

0 comments on commit 3d97c0a

Please sign in to comment.