Myserial Library extends RawSerial
Revision 16:596e062f6c45, committed 2014-07-04
- Comitter:
- naao
- Date:
- Fri Jul 04 11:10:06 2014 +0000
- Parent:
- 15:a0b05e764268
- Commit message:
- fixed exmaple
Changed in this revision
MySerial.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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