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.
Diff: OSCMessage.cpp
- Revision:
- 15:feef2588372f
- Parent:
- 13:c2fe6b720f94
- Child:
- 17:9479c15a9d54
diff -r 2148b54dfdbf -r feef2588372f OSCMessage.cpp --- a/OSCMessage.cpp Mon Dec 10 16:51:59 2018 +0100 +++ b/OSCMessage.cpp Wed Dec 12 01:58:46 2018 +0100 @@ -198,11 +198,7 @@ if (!hasError()){ return datum->getBlob(buffer); } else { - #ifndef ESPxx - return NULL; - #else return -1; - #endif } } @@ -211,11 +207,7 @@ if (!hasError()){ return datum->getBlob(buffer, bufferSize); } else { - #ifndef ESPxx - return NULL; - #else return -1; - #endif } } @@ -224,11 +216,7 @@ if (!hasError()){ return datum->getBlob(buffer, bufferSize, offset, size); } else { - #ifndef ESPxx - return NULL; - #else return -1; - #endif } } @@ -238,11 +226,7 @@ if (!hasError()){ return datum->getBlobLength(); } else { - #ifndef ESPxx - return NULL; - #else return -1; - #endif } } @@ -252,11 +236,7 @@ if (!hasError()){ return datum->type; } else { - #ifndef ESPxx - return (int)NULL; - #else return '\0'; - #endif } } @@ -548,9 +528,8 @@ uint32_t i = BigEndian(datum->data.i); uint8_t * ptr = (uint8_t *) &i; for (int i = 0; i < datum->bytes; i++){ - buff[lengthEnd++]=ptr[i]; - // p.write((uint8_t) getType(i)); - } + buff[lengthEnd++]=ptr[i]; + } // p.write(ptr, datum->bytes); } }