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.
handle/handleGPS.cpp@6:f0248eb6714d, 2014-04-03 (annotated)
- Committer:
- dylanembed123
- Date:
- Thu Apr 03 16:27:23 2014 +0000
- Revision:
- 6:f0248eb6714d
- Parent:
- 4:c75d5e5e6bfc
Fix compile errors;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dylanembed123 | 6:f0248eb6714d | 1 | #include "handleGPS.h" |
dylanembed123 | 4:c75d5e5e6bfc | 2 | void GPSHandle::setup(){ |
dylanembed123 | 4:c75d5e5e6bfc | 3 | } |
dylanembed123 | 4:c75d5e5e6bfc | 4 | |
dylanembed123 | 4:c75d5e5e6bfc | 5 | void GPSHandle::update(){ |
dylanembed123 | 4:c75d5e5e6bfc | 6 | while(true){ |
dylanembed123 | 6:f0248eb6714d | 7 | if(gps.getSerial().readable()>0){ |
dylanembed123 | 6:f0248eb6714d | 8 | char c = gps.getSerial().getc(); |
dylanembed123 | 4:c75d5e5e6bfc | 9 | USB::getSerial().printf("%c",c); |
dylanembed123 | 4:c75d5e5e6bfc | 10 | } |
dylanembed123 | 4:c75d5e5e6bfc | 11 | } |
dylanembed123 | 4:c75d5e5e6bfc | 12 | } |
dylanembed123 | 4:c75d5e5e6bfc | 13 | |
dylanembed123 | 4:c75d5e5e6bfc | 14 | bool GPSHandle::check(){ |
dylanembed123 | 4:c75d5e5e6bfc | 15 | return true; |
dylanembed123 | 6:f0248eb6714d | 16 | } |
dylanembed123 | 6:f0248eb6714d | 17 | |
dylanembed123 | 6:f0248eb6714d | 18 | void GPSHandle::run(){ |
dylanembed123 | 4:c75d5e5e6bfc | 19 | } |