fix #64: GapAdvertisingData::getPayload() should return the payload pointer regardless of len.

master
Rohit Grover 2015-08-07 09:20:30 +01:00
parent 3711ca3016
commit 24a989212a
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ public:
* Returns a pointer to the the current payload
*/
const uint8_t *getPayload(void) const {
return (_payloadLen > 0) ? _payload : NULL;
return _payload;
}
/**