mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
Replaced const variables with constexpr (#731)
This commit is contained in:
committed by
Peter Johnson
parent
259461aee9
commit
5af0c9c101
@@ -40,7 +40,7 @@ class DriverStation : public SensorBase, public RobotStateInterface {
|
||||
static void ReportError(bool is_error, int code, llvm::StringRef error,
|
||||
llvm::StringRef location, llvm::StringRef stack);
|
||||
|
||||
static const int kJoystickPorts = 6;
|
||||
static constexpr int kJoystickPorts = 6;
|
||||
|
||||
bool GetStickButton(int stick, int button);
|
||||
bool GetStickButtonPressed(int stick, int button);
|
||||
|
||||
Reference in New Issue
Block a user