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: Packet.cpp
- Revision:
- 1:fa51edf89e71
- Parent:
- 0:6ee88b4152dc
- Child:
- 2:7f7eb0cc78a4
--- a/Packet.cpp Wed Apr 23 11:10:26 2014 +0000 +++ b/Packet.cpp Thu Apr 24 10:39:09 2014 +0000 @@ -40,6 +40,7 @@ } Packet::Packet(uint8_t ID[2]) { + printf("error packet aanmaken \n"); //geheugen in de heap vrij maken this->ID = new uint8_t[2]; this->RESERVED = new uint8_t[2]; @@ -52,7 +53,7 @@ this->CMD_SIZE = 0; this->CMD_DATA = NULL; this->RESERVED[0] = 0; - this->RESERVED[1] = 0; + this->RESERVED[1] = 1; } Packet::Packet(uint8_t ID[2],uint8_t CMD,uint8_t RESERVED[2]) { @@ -209,9 +210,12 @@ this->nBytesFilled++; } } - delete m; + //Wordt nu gedelete in meting thread! + //delete m; return(true); } } + //Wordt nu gedelete in meting thread! + //delete m; return(false); } \ No newline at end of file