This commit is contained in:
kon 2020-07-27 20:31:01 -07:00
commit a6d635d141
2 changed files with 2 additions and 4 deletions

View File

@ -11,9 +11,9 @@ import java.util.concurrent.CopyOnWriteArrayList;
* <p/> * <p/>
* Date: 1/6/13 * Date: 1/6/13
* Andrey Belomutskiy, (c) 2013-2020 * Andrey Belomutskiy, (c) 2013-2020
* @see SensorLog
*/ */
public class SensorCentral implements ISensorCentral { public class SensorCentral implements ISensorCentral {
public static final String RPM_KEY = "rpm";
private static final SensorCentral INSTANCE = new SensorCentral(); private static final SensorCentral INSTANCE = new SensorCentral();
private final SensorsHolder sensorsHolder = new SensorsHolder(); private final SensorsHolder sensorsHolder = new SensorsHolder();

View File

@ -82,14 +82,12 @@ public class SensorLogger {
Sensor.engineMakeCodeNameCrc16, Sensor.engineMakeCodeNameCrc16,
Sensor.tuneCrc16, Sensor.tuneCrc16,
}; };
private final UIContext uiContext;
private List<SensorLog> sensorLogs; private final List<SensorLog> sensorLogs;
private boolean isInitialized; private boolean isInitialized;
public SensorLogger(UIContext uiContext) { public SensorLogger(UIContext uiContext) {
this.uiContext = uiContext;
sensorLogs = Arrays.asList(new PlainTextSensorLog(uiContext), new BinarySensorLogRestarter()); sensorLogs = Arrays.asList(new PlainTextSensorLog(uiContext), new BinarySensorLogRestarter());
} }