mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpiutil] Disable mock time on the Rio (#5092)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user