Skip to content

Commit

Permalink
Move within if(isReal)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Sep 8, 2023
1 parent a87aba6 commit 97983e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/DataLogManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 97983e3

Please sign in to comment.