Puck lib

Dependencies:   BLE_API nRF51822

Dependents:  

Fork of Puck by Nordic Pucks

Files at this revision

API Documentation at this revision

Comitter:
stiaje
Date:
Wed Jul 23 14:19:52 2014 +0000
Parent:
3:5432b38585ea
Child:
6:211ffef3b88e
Commit message:
return reference to ble instead of copy

Changed in this revision

Puck.h Show annotated file Show diff for this revision Revisions of this file
--- a/Puck.h	Wed Jul 23 13:00:42 2014 +0000
+++ b/Puck.h	Wed Jul 23 14:19:52 2014 +0000
@@ -95,7 +95,7 @@
     public:
         static Puck &getPuck();
         
-        BLEDevice getBle() { return ble; }
+        BLEDevice &getBle() { return ble; }
         PuckState getState() { return state; }
         void setState(PuckState state);        
         void init(uint16_t minor);