summaryrefslogtreecommitdiff
path: root/altoslib/AltosLink.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-04-25 23:12:34 -0400
committerKeith Packard <keithp@keithp.com>2016-04-25 23:12:34 -0400
commit204ae5142702044eb8ad2697a55028e904067958 (patch)
treeeadc8893251e4ebbfd036ccc57ac95aa1aba199d /altoslib/AltosLink.java
parent565404599fe9edf9ba16aec348eeb19ea31af743 (diff)
altosdroid: Add idle mode monitoring, reboot. Start igniters
This adds three idle mode operations -- monitor idle, reboot flight computer and test igniters. The igniter test isn't quite wired up. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosLink.java')
-rw-r--r--altoslib/AltosLink.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/altoslib/AltosLink.java b/altoslib/AltosLink.java
index d3c178b7..73bab3ef 100644
--- a/altoslib/AltosLink.java
+++ b/altoslib/AltosLink.java
@@ -539,15 +539,15 @@ public abstract class AltosLink implements Runnable {
if (config_data.has_monitor_battery()) {
try {
- String[] items = adc();
- for (int i = 0; i < items.length;) {
- if (items[i].equals("batt")) {
- monitor_batt = Integer.parseInt(items[i+1]);
- i += 2;
- continue;
+ String[] items = adc();
+ for (int i = 0; i < items.length;) {
+ if (items[i].equals("batt")) {
+ monitor_batt = Integer.parseInt(items[i+1]);
+ i += 2;
+ continue;
+ }
+ i++;
}
- i++;
- }
} catch (TimeoutException te) {
}
}