mbed os 5?

Dependencies:   GYSFDMAXB_Mbed_OS Vector3

Revision:
1:d299835a8259
Parent:
0:19a43a10f6c0
--- a/main.cpp	Thu Apr 22 12:21:14 2021 +0000
+++ b/main.cpp	Fri Apr 23 12:04:06 2021 +0000
@@ -1,9 +1,10 @@
 #include "mbed.h"
+#include "BufferedSerial.h"
 #include <string.h>
 #include "GYSFDMAXB.hpp"
 
 
-Serial pc(USBTX, USBRX);
+BufferedSerial pc(USBTX, USBRX, 115200);
 GYSFDMAXB gps(PC_12, PD_2);
 DigitalOut led(LED1);
 
@@ -36,7 +37,6 @@
 
 int main()
 {
-    pc.baud(115200);
     Ticker ticker;
     
     ticker.attach(&Display, 0.3);
@@ -47,6 +47,8 @@
     
     while (1)
     {
+        gps.Update();
+        pc.printf(" MbedOS v %d.%d.%d\r\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
     }
 }