![](/media/cache/profiles/2012_sf_avc_095.jpg.50x50_q85.jpg)
2018 revision to classic DataBus AVC code.
Dependencies: LSM303DLM Servo SerialGraphicLCD L3G4200D IncrementalEncoder SimpleShell
Diff: Ublox6.cpp
- Revision:
- 23:5e61cf4a8c34
- Parent:
- 20:043987d06f8d
- Child:
- 24:a7f92dfc5310
diff -r 4d62bd16f037 -r 5e61cf4a8c34 Ublox6.cpp --- 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) {