[wpilibc] Make IsSimulation() checks constexpr (#2769)

This commit is contained in:
Tyler Veness
2020-10-03 22:26:19 -07:00
committed by GitHub
parent fa809b2c4b
commit 8e538aa82f
4 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ IterativeRobot::IterativeRobot() : IterativeRobotBase(kPacketPeriod) {
void IterativeRobot::StartCompetition() {
RobotInit();
if (IsSimulation()) {
if constexpr (IsSimulation()) {
SimulationInit();
}