ir-puck

Dependencies:   Puck IRSender mbed

Fork of ir-puck by Nordic Pucks

Revision:
8:260888851644
Parent:
5:3642c0af497e
Child:
10:35d78d589580
--- a/main.cpp	Wed Jul 23 14:11:43 2014 +0000
+++ b/main.cpp	Wed Jul 23 14:20:06 2014 +0000
@@ -16,6 +16,7 @@
 
 
 void onIRCodeWrite(uint8_t* value) {
+    puck->getBle().disconnect();
     LOG_INFO("Going to fire IR code...\n");
     fireIRCode(puck->getCharacteristicValue(HEADER_UUID),
                puck->getCharacteristicValue(ONE_UUID),