fixed at least 1 bug in the uart handling code and cleaned it up a lot
diff --git a/bbb_cape/src/cape/data_struct.h b/bbb_cape/src/cape/data_struct.h
index 68491eb..367c359 100644
--- a/bbb_cape/src/cape/data_struct.h
+++ b/bbb_cape/src/cape/data_struct.h
@@ -61,7 +61,7 @@
 // The number of bytes that we actually send (so it stays consistent) (including
 // the byte-stuffing overhead and the CRC on the end).
 // This will always be a multiple of 4.
-#define DATA_STRUCT_SEND_SIZE 200
+#define DATA_STRUCT_SEND_SIZE 148
 
 #ifdef __cplusplus
 #define STATIC_ASSERT(cond, msg) static_assert(cond, #msg)