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.
Dependencies: DAQ mbed-rtos mbed
Diff: Uart.cpp
- Revision:
- 2:7f7eb0cc78a4
- Parent:
- 1:fa51edf89e71
--- a/Uart.cpp Thu Apr 24 10:39:09 2014 +0000 +++ b/Uart.cpp Wed Apr 30 11:41:10 2014 +0000 @@ -71,10 +71,9 @@ data[size+7] = pc.getc(); data[size+8] = pc.getc(); - this->flush(); - Packet *p = new Packet(data,TOT_SIZE+2,m->getID()); - m->packetWorker(p); + Packet *p = new Packet(m->getID(),data,TOT_SIZE+2); + m->packetWorker(p); delete [] totsize; delete [] data; @@ -85,7 +84,6 @@ { for(int i = 0; i < packetscount; i++) { - pc.printf("%d",i); //pc.printf("PACKET: "); Packet *p = packets[i]; @@ -127,7 +125,6 @@ if(packetscount<2) { packets[packetscount] = p; - pc.putc(p->getCMD()); packetscount++; } else