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 C027_Support_Plus_Dialing by
Diff: GPS.cpp
- Revision:
- 15:5eda64e5b9d1
- Parent:
- 11:b084552b03fe
- Child:
- 18:e5697801df29
diff -r 69c3e57ef0f5 -r 5eda64e5b9d1 GPS.cpp --- a/GPS.cpp Tue Nov 19 09:02:35 2013 +0000 +++ b/GPS.cpp Fri Nov 22 08:23:30 2013 +0000 @@ -211,7 +211,7 @@ GPSSerial::GPSSerial(PinName tx /*= GPSTXD*/, PinName rx /*= GPSRXD*/, int baudrate /*= GPSBAUD*/, int rxSize /*= 256*/, int txSize /*= 128*/) : - SerialPipe(tx, rx, rxSize, txSize, "gps") + SerialPipe(tx, rx, rxSize, txSize) { baud(baudrate); } @@ -295,7 +295,7 @@ if (!I2C::write(GPSADR,®STREAM,sizeof(REGSTREAM),true)) sent = GPSParser::sendUbx(cls, id, buf, len); found = (len == sent); - stop(); + I2C::stop(); return sent; } @@ -311,7 +311,6 @@ size = len; if (size > 0) read = !I2C::read(GPSADR,buf,size, true) ? size : 0; - stop(); found = (read == size); } else