progress
This commit is contained in:
parent
28ce458e5b
commit
437e64ad38
|
@ -80,7 +80,7 @@ public enum FileLog {
|
||||||
return new FileOutputStream(fileName, true);
|
return new FileOutputStream(fileName, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void createFolderIfNeeded() {
|
static void createFolderIfNeeded() {
|
||||||
File dir = new File(DIR);
|
File dir = new File(DIR);
|
||||||
if (dir.exists())
|
if (dir.exists())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -138,13 +138,14 @@ public class SensorLogger {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void startSensorLogFile() {
|
private static void startSensorLogFile() {
|
||||||
|
FileLog.createFolderIfNeeded();
|
||||||
String fileName = FileLog.DIR + FileLog.getDate() + ".msl";
|
String fileName = FileLog.DIR + FileLog.getDate() + ".msl";
|
||||||
|
|
||||||
fileStartTime = System.currentTimeMillis();
|
fileStartTime = System.currentTimeMillis();
|
||||||
try {
|
try {
|
||||||
logFile = new FileWriter(fileName);
|
logFile = new FileWriter(fileName);
|
||||||
|
|
||||||
logFile.write("\"rusEfi console" + Launcher.CONSOLE_VERSION + " firmware " + Launcher.firmwareVersion.get() + "\"\r\n");
|
logFile.write("\"rusEFI console" + Launcher.CONSOLE_VERSION + " firmware " + Launcher.firmwareVersion.get() + "\"\r\n");
|
||||||
logFile.write("Captured " + FileLog.getDate() + "\r\n");
|
logFile.write("Captured " + FileLog.getDate() + "\r\n");
|
||||||
|
|
||||||
int debugMode = -1;
|
int debugMode = -1;
|
||||||
|
|
Loading…
Reference in New Issue