NIT Fukui / Serial6050Yaw

Dependents:   R1Arobo_Maika_B 2021Arobo_UMAPYOI 2021Arobo_YUMIPYOI

Revision:
1:97a3a91ce950
Parent:
0:c3d09c97649b
Child:
2:00a8daf9203b
--- a/Serial6050.h	Thu Sep 20 01:13:45 2018 +0000
+++ b/Serial6050.h	Wed Sep 26 00:55:39 2018 +0000
@@ -16,11 +16,7 @@
     DigitalOut rst;
     int resetValue;
     void intReceive() {
-        char data = serial.getc();
-        if(data >= 0x80)
-            higher = data & 0x7f;
-        else
-            lower = data & 0x7f;
+        lower = serial.getc();
     }
 public:
     Serial6050(PinName tx, PinName rx, PinName reset);