We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4bdb0 commit 1aa281aCopy full SHA for 1aa281a
cpp/frc2/command/CommandScheduler.cpp
@@ -193,7 +193,7 @@ void CommandScheduler::Run() {
193
// Run the periodic method of all registered subsystems.
194
for (auto&& subsystem : m_impl->subsystems) {
195
subsystem.getFirst()->Periodic();
196
- if (frc::RobotBase::IsSimulation()) {
+ if constexpr (frc::RobotBase::IsSimulation()) {
197
subsystem.getFirst()->SimulationPeriodic();
198
}
199
m_watchdog.AddEpoch("Subsystem Periodic()");
0 commit comments