Using FRDM Board to output data and a clock for communications example.

Dependencies:   mbed

Revision:
11:aa30552269b2
Parent:
10:90cc064f7082
--- a/main.cpp	Wed Apr 29 19:35:32 2015 +0000
+++ b/main.cpp	Thu Apr 30 14:05:24 2015 +0000
@@ -149,7 +149,7 @@
     temp = crc_bytes / j;
     temp ^= CRC;
     //decrement j
-    j--;
+    j /= 2;
     
     //crc loop - shift in each bit position and xor with CRC constant
     while(j>0)
@@ -161,7 +161,7 @@
         //xor with crc constant
         temp ^= CRC;
         //decrement j
-        j--;        
+        j /= 2;        
     }
     
     //mask out 4 msb bits and return just the 4 bit CRC remainder