summaryrefslogtreecommitdiff
path: root/altoslib/AltosEepromMega.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-10-21 13:42:00 -0700
committerKeith Packard <keithp@keithp.com>2012-10-21 13:42:00 -0700
commit1f5a453cb4650fc97cc990a9e42242278c29cc04 (patch)
tree3e84160bcc23c40140d87be28ca29770dfce3a7a /altoslib/AltosEepromMega.java
parent84a144e8b479550406323bc3b2cf89026b770746 (diff)
altoslib: MegaMetrum eeprom never loses GPS date
TeleMetrum had a firmware bug that would fail to record the GPS date and time correctly, that was hacked around in altosui, but isn't needed for MegaMetrum. Remove those hacks from the MM path. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosEepromMega.java')
-rw-r--r--altoslib/AltosEepromMega.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/altoslib/AltosEepromMega.java b/altoslib/AltosEepromMega.java
index 26bacf8d..25a29fb2 100644
--- a/altoslib/AltosEepromMega.java
+++ b/altoslib/AltosEepromMega.java
@@ -66,12 +66,7 @@ public class AltosEepromMega {
public int mag_x() { return data16(20); }
public int mag_y() { return data16(22); }
public int mag_z() { return data16(24); }
- public int accel() {
- int a = data16(26);
- if (a != 0xffff)
- return a;
- return accel_y();
- }
+ public int accel() { return data16(26); }
/* AO_LOG_VOLT elements */
public int v_batt() { return data16(0); }