Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: handle/handleGPS.cpp
- Revision:
- 6:f0248eb6714d
- Parent:
- 4:c75d5e5e6bfc
--- a/handle/handleGPS.cpp Thu Apr 03 15:56:05 2014 +0000 +++ b/handle/handleGPS.cpp Thu Apr 03 16:27:23 2014 +0000 @@ -1,10 +1,11 @@ +#include "handleGPS.h" void GPSHandle::setup(){ } void GPSHandle::update(){ while(true){ - if(gps.readable()>0){ - char c = gps.getc(); + if(gps.getSerial().readable()>0){ + char c = gps.getSerial().getc(); USB::getSerial().printf("%c",c); } } @@ -12,4 +13,7 @@ bool GPSHandle::check(){ return true; +} + +void GPSHandle::run(){ } \ No newline at end of file