I messed up the merge, so pushing it over to another repo so I don't lose it. Will tidy up and remove later

Dependencies:   BufferedSerial FatFileSystemCpp mbed

Revision:
18:ad407a2ed4c9
Parent:
16:a8d3a0dbe4bf
Child:
35:7ecf25d9c414
--- a/VIPSSerialProtocol.h	Fri Apr 30 12:21:01 2021 +0000
+++ b/VIPSSerialProtocol.h	Mon May 17 11:41:57 2021 +0000
@@ -32,6 +32,7 @@
     bool SetSmoothLevel (const int newSmooth) { if (newSmooth == SmoothBy) return false; SmoothBy = newSmooth; SmoothRunning = false; return true; };
     void EnableBypass(bool enable) { BypassMode = enable;};
     void bypassTx(char byte);
+    void sendQueued(void);
 
 private:
 
@@ -45,6 +46,7 @@
     void processRxMessage();
     bool checkCRC(unsigned char* data);
     void sendResponse(unsigned char function, unsigned char* data, int dataLen);
+    void queueResponse(unsigned char function, unsigned char* data, int dataLen);
     void sendAck(unsigned char function);
     void sendNack(unsigned char function);
     void sendVBOXTime();
@@ -72,6 +74,7 @@
     uint32_t pointCount;
     uint32_t _outputMask;
 
+    int queueLen;
     int SmoothBy;
     // total as a float we would start to see rounding errors at valuses of ~20m 
     double XSmoothTotal;