From: Mike Beattie Date: Tue, 18 Sep 2012 11:47:06 +0000 (+1200) Subject: altoslib: make parts of AltosLog public for usage outside altoslib. X-Git-Tag: 1.1.9.1~53^2~1 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=0541201d4afe3e5d7913465e1db10e586d7182bb;hp=c058ec2d6070458a0b7d3ef56041e985412ee565 altoslib: make parts of AltosLog public for usage outside altoslib. Signed-off-by: Mike Beattie --- diff --git a/altoslib/AltosLog.java b/altoslib/AltosLog.java index 3c124700..1c7069ce 100644 --- a/altoslib/AltosLog.java +++ b/altoslib/AltosLog.java @@ -25,7 +25,7 @@ import java.util.concurrent.LinkedBlockingQueue; * This creates a thread to capture telemetry data and write it to * a log file */ -class AltosLog implements Runnable { +public class AltosLog implements Runnable { LinkedBlockingQueue input_queue; LinkedBlockingQueue pending_queue; @@ -45,7 +45,7 @@ class AltosLog implements Runnable { } } - void close() { + public void close() { close_log_file(); if (log_thread != null) { log_thread.interrupt(); @@ -53,7 +53,7 @@ class AltosLog implements Runnable { } } - File file() { + public File file() { return file; }