Skip to content

Commit 1aa281a

Browse files
authored
[wpilibc] Make IsSimulation() checks constexpr (#2769)
1 parent bc4bdb0 commit 1aa281a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/frc2/command/CommandScheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void CommandScheduler::Run() {
193193
// Run the periodic method of all registered subsystems.
194194
for (auto&& subsystem : m_impl->subsystems) {
195195
subsystem.getFirst()->Periodic();
196-
if (frc::RobotBase::IsSimulation()) {
196+
if constexpr (frc::RobotBase::IsSimulation()) {
197197
subsystem.getFirst()->SimulationPeriodic();
198198
}
199199
m_watchdog.AddEpoch("Subsystem Periodic()");

0 commit comments

Comments
 (0)