Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of iSerial by
Revision 9:0c4254519cda, committed 2012-12-13
- Comitter:
- UsulFremen
- Date:
- Thu Dec 13 09:51:46 2012 +0000
- Parent:
- 8:20759f992d48
- Commit message:
- Corrected error on Serial constructor (Serial(_tx, _rx, _name)).
Changed in this revision
iSerial.cpp | Show annotated file Show diff for this revision Revisions of this file |
iSerial.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/iSerial.cpp Mon Sep 03 17:59:00 2012 +0000 +++ b/iSerial.cpp Thu Dec 13 09:51:46 2012 +0000 @@ -98,8 +98,8 @@ // led4 = 0; } -iSerial::iSerial(PinName _tx, PinName _rx, const char *_name, int _txbufsize, int _rxbufsize) -: Serial(_tx, _rx, _name), +iSerial::iSerial(PinName _tx, PinName _rx, int _txbufsize, int _rxbufsize) +: Serial(_tx, _rx), tx(_tx), rx(_rx), txbufsize(_txbufsize),
--- a/iSerial.h Mon Sep 03 17:59:00 2012 +0000 +++ b/iSerial.h Thu Dec 13 09:51:46 2012 +0000 @@ -33,7 +33,7 @@ enum TERMINL_CODES { CR=0x0D, LF=0x0A }; - iSerial(PinName _tx, PinName _rx, const char *_name=NULL, int _txbufsize=100, int _rxbufsize=100); + iSerial(PinName _tx, PinName _rx, int _txbufsize=100, int _rxbufsize=100); virtual ~iSerial(); short int putstr(const char* s);