altoslib: Fetch correct mag along data for EasyMega v2
authorKeith Packard <keithp@keithp.com>
Fri, 19 Apr 2019 02:46:24 +0000 (19:46 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 19 Apr 2019 02:46:24 +0000 (19:46 -0700)
Was using the wrong axis (y) instead of the correct one (x)

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosEepromRecordMega.java

index c37dbfa..ce9dbc1 100644 (file)
@@ -162,7 +162,7 @@ public class AltosEepromRecordMega extends AltosEepromRecord {
                case AltosLib.AO_LOG_FORMAT_TELEMEGA_OLD:
                        return mag_y();
                case AltosLib.AO_LOG_FORMAT_EASYMEGA_2:
-                       return mag_y();
+                       return mag_x();
                default:
                        return AltosLib.MISSING;
                }