[wpilib] DataLogManager: Warn user if logging to RoboRIO 1 internal storage (#5617)

This commit is contained in:
Ryan Blue
2023-09-11 18:47:31 -04:00
committed by GitHub
parent 7a9a901a73
commit 339ef1ea39
2 changed files with 12 additions and 1 deletions

View File

@@ -204,8 +204,13 @@ public final class DataLogManager {
} catch (IOException ex) {
// ignored
}
if (RobotBase.getRuntimeType() == RuntimeType.kRoboRIO) {
DriverStation.reportWarning(
"DataLogManager: Logging to RoboRIO 1 internal storage is not recommended!"
+ " Plug in a FAT32 formatted flash drive!",
false);
}
}
return Filesystem.getOperatingDirectory().getAbsolutePath();
}