2018 revision to classic DataBus AVC code.

Dependencies:   LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell

Revision:
23:5e61cf4a8c34
Parent:
20:043987d06f8d
Child:
24:a7f92dfc5310
--- a/Ublox6.cpp	Mon Dec 17 22:26:34 2018 +0000
+++ b/Ublox6.cpp	Tue Dec 18 17:09:38 2018 +0000
@@ -44,6 +44,7 @@
     tmp.hdop = 0;
     tmp.svcount = 0;
     latest = tmp;
+    _callback = NULL;
 }
 
 int Ublox6::parse(int cc)
@@ -176,6 +177,8 @@
         tmp.course = 0;
         tmp.hdop = 0;
         tmp.svcount = 0;
+        if (_callback)
+            _callback();
     }
 
     return status;
@@ -192,6 +195,13 @@
     return;
 }
 
+
+void Ublox6::subscribe(Callback<void()> cb) {
+    _callback = cb;
+
+    return;
+}
+
 /*
 bool Ublox6::available(void)
 {