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 c37dbfa2ee2ed409f7ae72a408a8f97a5bc3c2b9..ce9dbc109e4955c40766c484b738e1d51aa947f4 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;
                }