mirror of https://github.com/ARMmbed/mbed-os.git
Nordic BLE: Improve return of nRF5xn::getGap.
Return the derived type instead of the abstract one. This is legal as C++ supports covariant returns.pull/7210/head
parent
ed9a1f1327
commit
8e7936d327
|
@ -55,7 +55,7 @@ public:
|
|||
* always needed in a BLE application. Therefore it is allocated
|
||||
* statically.
|
||||
*/
|
||||
virtual Gap &getGap() {
|
||||
virtual nRF5xGap &getGap() {
|
||||
return gapInstance;
|
||||
};
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
* always needed in a BLE application. Therefore it is allocated
|
||||
* statically.
|
||||
*/
|
||||
virtual Gap &getGap() {
|
||||
virtual nRF5xGap &getGap() {
|
||||
return gapInstance;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue