mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Report WPILib version as part of usage reporting (#2199)
This commit is contained in:
@@ -36,7 +36,7 @@ int frc::RunHALInitialization() {
|
||||
return -1;
|
||||
}
|
||||
HAL_Report(HALUsageReporting::kResourceType_Language,
|
||||
HALUsageReporting::kLanguage_CPlusPlus);
|
||||
HALUsageReporting::kLanguage_CPlusPlus, 0, GetWPILibVersion());
|
||||
wpi::outs() << "\n********** Robot program starting **********\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -317,7 +317,8 @@ public abstract class RobotBase implements AutoCloseable {
|
||||
// Needed because all the OpenCV JNI functions don't have built in loading
|
||||
CameraServerJNI.enumerateSinks();
|
||||
|
||||
HAL.report(tResourceType.kResourceType_Language, tInstances.kLanguage_Java);
|
||||
HAL.report(tResourceType.kResourceType_Language, tInstances.kLanguage_Java, 0,
|
||||
WPILibVersion.Version);
|
||||
|
||||
if (HAL.hasMain()) {
|
||||
Thread thread = new Thread(() -> {
|
||||
|
||||
Reference in New Issue
Block a user