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

This commit is contained in:
Rohit Grover 2015-08-07 09:20:30 +01:00
parent 3711ca3016
commit 24a989212a

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;
}
/**