[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

@@ -170,7 +170,7 @@ void IterativeRobotBase::LoopFunc() {
Shuffleboard::Update();
m_watchdog.AddEpoch("Shuffleboard::Update()");
if (IsSimulation()) {
if constexpr (IsSimulation()) {
SimulationPeriodic();
m_watchdog.AddEpoch("SimulationPeriodic()");
}