mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilibc] Make IsSimulation() checks constexpr (#2769)
This commit is contained in:
@@ -24,7 +24,7 @@ IterativeRobot::IterativeRobot() : IterativeRobotBase(kPacketPeriod) {
|
||||
void IterativeRobot::StartCompetition() {
|
||||
RobotInit();
|
||||
|
||||
if (IsSimulation()) {
|
||||
if constexpr (IsSimulation()) {
|
||||
SimulationInit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user