From 24a989212aac3782f83ae268fc3730fd5e18b2d7 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Fri, 7 Aug 2015 09:20:30 +0100 Subject: [PATCH] fix #64: GapAdvertisingData::getPayload() should return the payload pointer regardless of len. --- ble/GapAdvertisingData.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ble/GapAdvertisingData.h b/ble/GapAdvertisingData.h index b967edf..1acc779 100644 --- a/ble/GapAdvertisingData.h +++ b/ble/GapAdvertisingData.h @@ -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; } /**