Mirror with some correction

Dependencies:   mbed FastIO FastPWM USBDevice

Revision:
95:8eca8acbb82c
Parent:
94:0476b3e2b996
Child:
96:68d5621ff49f
--- a/main.cpp	Sun Jan 28 20:00:57 2018 +0000
+++ b/main.cpp	Sun Jan 28 20:59:59 2018 +0000
@@ -6520,6 +6520,9 @@
                 x = xa;
                 y = ya;
                 
+                // rotate X and Y according to the device orientation in the cabinet
+                accelRotate(x, y);
+
                 // reset the stutter counter
                 jsAccelStutterCounter = 0;
             }
@@ -6534,9 +6537,6 @@
             int zActual = plungerReader.getPosition();
             int zReported = (!cfg.plunger.enabled || zbLaunchOn ? 0 : zActual);
             
-            // rotate X and Y according to the device orientation in the cabinet
-            accelRotate(x, y);
-
             // send the joystick report
             jsOK = js.update(x, y, zReported, jsButtons, statusFlags);