[wpiutil] Disable mock time on the Rio (#5092)

This commit is contained in:
Peter Johnson
2023-02-12 22:38:34 -08:00
committed by GitHub
parent 43975ac7cc
commit d56314f866

View File

@@ -63,8 +63,12 @@ JNIEXPORT void JNICALL
Java_edu_wpi_first_util_WPIUtilJNI_enableMockTime
(JNIEnv*, jclass)
{
#ifdef __FRC_ROBORIO__
fmt::print(stderr, "WPIUtil: Mocking time is not available on the Rio\n");
#else
mockTimeEnabled = true;
wpi::SetNowImpl([] { return mockNow; });
#endif
}
/*