[wpilib] RobotController: Add isSystemTimeValid() (#5696)

This returns true when the system date/time (wall clock) is valid.
This commit is contained in:
Peter Johnson
2023-09-30 09:22:51 -07:00
committed by GitHub
parent e56f1a3632
commit d404af5f24
9 changed files with 65 additions and 1 deletions

View File

@@ -336,6 +336,10 @@ HAL_Bool HAL_GetRSLState(int32_t* status) {
return false;
}
HAL_Bool HAL_GetSystemTimeValid(int32_t* status) {
return true;
}
HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
static std::atomic_bool initialized{false};
static wpi::mutex initializeMutex;