Myserial Library extends RawSerial
Diff: MySerial.h
- Revision:
- 16:596e062f6c45
- Parent:
- 15:a0b05e764268
diff -r a0b05e764268 -r 596e062f6c45 MySerial.h --- a/MySerial.h Fri Jul 04 11:06:02 2014 +0000 +++ b/MySerial.h Fri Jul 04 11:10:06 2014 +0000 @@ -28,8 +28,8 @@ * void readbuf() * { * if (readSize >= sizeof(cWord)) { readSize = sizeof(cWord)-1; } - * // int iRtn = pc.GetString(6,&cWord); //Serial received chars by pointer cWord - * int iRtn = pc.GetString(6,cWord); //Serial received chars byref of cWord + * // int iRtn = pc.GetString(readSize,&cWord); //Serial received chars by pointer cWord + * int iRtn = pc.GetString(readSize,cWord); //Serial received chars byref of cWord * } * int main() { * pc.baud(9600); //set baud rate