mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Remove use of std::chrono_literals (C++14 feature). (#574)
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
#include "HAL/HAL.h"
|
||||
|
||||
using namespace frc;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
/**
|
||||
* Provide an alternate "main loop" via StartCompetition().
|
||||
@@ -22,7 +21,7 @@ void TimedRobot::StartCompetition() {
|
||||
m_startLoop = true;
|
||||
m_loop->StartPeriodic(m_period);
|
||||
while (true) {
|
||||
std::this_thread::sleep_for(24h);
|
||||
std::this_thread::sleep_for(std::chrono::hours(24));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user