Emir Sokic / Mbed 2 deprecated LV7_joystickTest

Dependencies:   mbed

Revision:
1:05900d7cb290
Parent:
0:6f2ee7918e2c
Child:
2:10ffe9ba97ee
--- a/main.cpp	Tue Apr 08 13:10:43 2014 +0000
+++ b/main.cpp	Wed Apr 09 10:42:43 2014 +0000
@@ -21,12 +21,12 @@
     SW.mode(PullUp);
 
     while(1) {
-        if (VRx<1/3) prikazX=1;
-        else if (VRx<2/3) prikazX=2;
+        if (VRx<1.0/3.0) prikazX=1;
+        else if (VRx<2.0/3.0) prikazX=2;
         else prikazX=4;
 
-        if (VRy<1/3) prikazY=1;
-        else if (VRy<2/3) prikazY=2;
+        if (VRy<1.0/3.0) prikazY=1;
+        else if (VRy<2.0/3.0) prikazY=2;
         else prikazY=4;
 
         if (SW==1) prikazSW=1;