Racelogic / Mbed 2 deprecated VIPS_LTC_RAW_IMU

Dependencies:   BufferedSerial FatFileSystemCpp mbed

Revision:
6:61274e214f46
Parent:
5:7994913a15fe
Child:
8:961bb15570a1
diff -r 7994913a15fe -r 61274e214f46 FIZReader.cpp
--- a/FIZReader.cpp	Mon Feb 01 17:29:57 2021 +0000
+++ b/FIZReader.cpp	Tue Feb 09 16:55:52 2021 +0000
@@ -1,5 +1,5 @@
 #include "FIZReader.h"
-
+#include "LTCApp.h"
 FIZReader::FIZReader(const PinName Tx, const PinName Rx) : _port(Tx,Rx)
 {
     _port.baud(115200);
@@ -37,7 +37,6 @@
 
 void FIZReader::OnRx(void)
 {
-    while (_port.readable()) {
         inputBuffer[inputPtr] = _port.getc();
         if (inputPtr==0) {
             if (inputBuffer[inputPtr] == 0x02)
@@ -50,7 +49,6 @@
             if (inputPtr == InBufferSize)
                 inputPtr = 0;
         }
-    }
 }
 
 void FIZReader::parsePacket()