Wouter van Kleunen / X_NUCLEO_IDB0XA1

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
308:6eb827be2e91
Parent:
302:ed6f74ab78f9
--- a/source/BlueNRGGap.cpp	Fri Sep 16 12:03:25 2016 +0200
+++ b/source/BlueNRGGap.cpp	Mon Sep 04 14:15:45 2017 +0000
@@ -221,9 +221,8 @@
 
         BlueNRGGap::getInstance().setAdvToFlag();
 
-        Timeout t = BlueNRGGap::getInstance().getAdvTimeout();
-        t.detach(); /* disable the callback from the timeout */
-
+        /* disable the callback from the timeout */
+        BlueNRGGap::getInstance().getAdvTimeout().detach();
     }
 }
 #endif /* AST_FOR_MBED_OS */