diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java index 685f065f1d1..65450639747 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java @@ -204,11 +204,11 @@ private static String makeLogDir(String dir) { } 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); + 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(); }