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.
Fork of dgps by
handle/handleGPS.cpp@7:c75d5e5e6bfc, 2014-04-01 (annotated)
- Committer:
- dylanembed123
- Date:
- Tue Apr 01 15:52:08 2014 +0000
- Revision:
- 7:c75d5e5e6bfc
- Child:
- 8:28b866df62cf
Update handler and adapter;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dylanembed123 | 7:c75d5e5e6bfc | 1 | void GPSHandle::setup(){ |
dylanembed123 | 7:c75d5e5e6bfc | 2 | } |
dylanembed123 | 7:c75d5e5e6bfc | 3 | |
dylanembed123 | 7:c75d5e5e6bfc | 4 | void GPSHandle::update(){ |
dylanembed123 | 7:c75d5e5e6bfc | 5 | while(true){ |
dylanembed123 | 7:c75d5e5e6bfc | 6 | if(gps.readable()>0){ |
dylanembed123 | 7:c75d5e5e6bfc | 7 | char c = gps.getc(); |
dylanembed123 | 7:c75d5e5e6bfc | 8 | USB::getSerial().printf("%c",c); |
dylanembed123 | 7:c75d5e5e6bfc | 9 | } |
dylanembed123 | 7:c75d5e5e6bfc | 10 | } |
dylanembed123 | 7:c75d5e5e6bfc | 11 | } |
dylanembed123 | 7:c75d5e5e6bfc | 12 | |
dylanembed123 | 7:c75d5e5e6bfc | 13 | bool GPSHandle::check(){ |
dylanembed123 | 7:c75d5e5e6bfc | 14 | return true; |
dylanembed123 | 7:c75d5e5e6bfc | 15 | } |