uitgy
Dependents: App_Pese_Ruche_SYSBEE
Fork of C027_Support by
Diff: GPS.cpp
- Revision:
- 15:5eda64e5b9d1
- Parent:
- 11:b084552b03fe
- Child:
- 18:e5697801df29
--- 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