Project Paint / Mbed 2 deprecated arm_control

Dependencies:   mbed QEI biquadFilter

Revision:
29:1c5254b27851
Parent:
18:1c9dc6caab9d
--- a/arm.cpp	Thu Nov 03 18:23:51 2016 +0000
+++ b/arm.cpp	Fri Nov 04 13:26:28 2016 +0000
@@ -39,7 +39,7 @@
     // Counterclockwise rotation
     if (referenceVelocity < 0) {
         motorDirection = counterClockwise;
-        velocity = (referenceVelocity < (-1 * maxAllowedVelocity))? (-1 * maxAllowedVelocity):referenceVelocity;
+        velocity = (referenceVelocity < (-1 * maxAllowedVelocity)) ? (-1 * maxAllowedVelocity) : referenceVelocity;
     // Clockwise rotation
     } else {
         motorDirection = clockwise;