Myserial Library extends RawSerial
Diff: MySerial.h
- Revision:
- 15:a0b05e764268
- Parent:
- 14:8bd054a87ac5
- Child:
- 16:596e062f6c45
--- a/MySerial.h Thu Jul 03 05:41:39 2014 +0000 +++ b/MySerial.h Fri Jul 04 11:06:02 2014 +0000 @@ -23,9 +23,11 @@ * * MySerial pc(USBTX,USBRX); //instance of MySerial Class * char cWord[16]; //receive chars or cWord[256], cWord[1024] etc.. + * int readSize = 15; * * 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 * }