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:
- 1:fa51edf89e71
- Parent:
- 0:6ee88b4152dc
- Child:
- 2:7f7eb0cc78a4
--- a/Uart.cpp Wed Apr 23 11:10:26 2014 +0000 +++ b/Uart.cpp Thu Apr 24 10:39:09 2014 +0000 @@ -85,11 +85,10 @@ { for(int i = 0; i < packetscount; i++) { - + pc.printf("%d",i); //pc.printf("PACKET: "); Packet *p = packets[i]; - /* //TOT_SIZE bytes pc.putc((p->getTOT_SIZE() >> 8) & 255); pc.putc((p->getTOT_SIZE() & 255)); @@ -114,9 +113,8 @@ //RESERVED bytes pc.putc(p->getRESERVED()[0]); pc.putc(p->getRESERVED()[1]); - */ - pc.printf("PACKET: %d \n",this->blub++); + //pc.printf("PACKET: %d \n",this->blub++); delete p; //pc.printf("\n"); } @@ -129,6 +127,7 @@ if(packetscount<2) { packets[packetscount] = p; + pc.putc(p->getCMD()); packetscount++; } else