A library for talking to Multi-Tech's Cellular SocketModem Devices.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: utils/MTSCircularBuffer.h
- Revision:
- 17:2d7c4ea7491b
- Parent:
- 2:8d3ea0dfce39
- Child:
- 39:6e94520a3217
- Child:
- 41:81d035fb0b6a
- Child:
- 45:40745c2036cf
--- a/utils/MTSCircularBuffer.h Fri Dec 13 23:02:50 2013 +0000 +++ b/utils/MTSCircularBuffer.h Mon Dec 16 20:00:20 2013 +0000 @@ -37,9 +37,9 @@ /** This method reads a single byte from the buffer. * - * @returns the byte or -1 if no byte was available. + * @returns length read or -1 if error. */ - int read(); + int read(char& data); /** This method enables bulk writes to the buffer. If more data * is requested to be written then space available no data is written