Fork to see if I can get working

Dependencies:   BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated

Fork of xDotBridge_update_test20180823 by Matt Briggs

Revision:
73:dc5adf462660
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xDotBridge/inc/util.h	Mon Apr 10 16:06:31 2017 -0600
@@ -0,0 +1,28 @@
+/*
+ * util.h
+ *
+ *  Created on: Mar 14, 2017
+ *      Author: mbriggs
+ */
+
+#ifndef XDOTBRIDGE_INC_UTIL_H_
+#define XDOTBRIDGE_INC_UTIL_H_
+
+#include <vector>
+
+void appendUint16ToVector (std::vector<uint8_t> &dest, uint16_t in)
+{
+    dest.push_back((in & 0xFF00) >> 8); // High data byte
+    dest.push_back((in & 0x00FF)); // Low data byte
+}
+void appendUint32ToVector (std::vector<uint8_t> &dest, uint32_t in)
+{
+    dest.push_back((in & 0xFF000000) >> 24);
+    dest.push_back((in & 0x00FF0000) >> 16);
+    dest.push_back((in & 0x0000FF00) >> 8);
+    dest.push_back((in & 0x000000FF));
+}
+
+
+
+#endif /* XDOTBRIDGE_INC_UTIL_H_ */