mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
SCRIPT: FRC_ replacements
This commit is contained in:
committed by
Peter Johnson
parent
824f36f63a
commit
928ff20695
@@ -15,7 +15,7 @@ using namespace wpi;
|
||||
|
||||
GenericHID::GenericHID(int port) {
|
||||
if (port < 0 || port >= DriverStation::kJoystickPorts) {
|
||||
throw FRC_MakeError(warn::BadJoystickIndex, "port {} out of range", port);
|
||||
throw WPILIB_MakeError(warn::BadJoystickIndex, "port {} out of range", port);
|
||||
}
|
||||
m_port = port;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user