UART Driver to receive asynchronous Serial Comms from a Raspberry Pi and parse the results.

Revision:
8:2cbaea485ddb
Parent:
7:34c5934a01f0
Child:
9:8e0a7d3f2f39
--- a/SerialComms.cpp	Fri Mar 04 06:43:50 2016 +0000
+++ b/SerialComms.cpp	Fri Mar 04 06:48:37 2016 +0000
@@ -54,11 +54,11 @@
 {
     if(incomingDataUpdate == TRUE)
     {
-        if( (receiverBuffer>&0x0F)==MOTORS_FORWARD ||
-            (receiverBuffer>&0x0F)==MOTORS_BACKWARD ||
-            (receiverBuffer>&0x0F)==MOTORS_LEFT ||
-            (receiverBuffer>&0x0F)==MOTORS_RIGHT ||
-            (receiverBuffer>&0x0F)==MOTORS_ARM 
+        if( (receiverBuffer&0x0F)==MOTORS_FORWARD ||
+            (receiverBuffer&0x0F)==MOTORS_BACKWARD ||
+            (receiverBuffer&0x0F)==MOTORS_LEFT ||
+            (receiverBuffer&0x0F)==MOTORS_RIGHT ||
+            (receiverBuffer&0x0F)==MOTORS_ARM 
             /* AND BALLAST REQUIREMENTS */)
         {
             incomingDataUpdate = FALSE;