mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Fix usage reporting indices (#2009)
According to NI, 0 is unspecified, and all the indices need to be index + 1, so the first index becomes 1.
This commit is contained in:
committed by
Peter Johnson
parent
f6b844ea30
commit
9dc30797e4
@@ -24,7 +24,7 @@ Joystick::Joystick(int port) : GenericHID(port) {
|
||||
m_axes[Axis::kTwist] = kDefaultTwistChannel;
|
||||
m_axes[Axis::kThrottle] = kDefaultThrottleChannel;
|
||||
|
||||
HAL_Report(HALUsageReporting::kResourceType_Joystick, port);
|
||||
HAL_Report(HALUsageReporting::kResourceType_Joystick, port + 1);
|
||||
}
|
||||
|
||||
void Joystick::SetXChannel(int channel) { m_axes[Axis::kX] = channel; }
|
||||
|
||||
Reference in New Issue
Block a user