project

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
138:32e3c4ca7a45
Parent:
135:f0b6cf8ac4fc
Child:
142:adf1567d3900
--- a/source/BlueNRGGap.cpp	Wed Oct 07 16:19:40 2015 +0200
+++ b/source/BlueNRGGap.cpp	Thu Oct 08 07:29:43 2015 +0200
@@ -289,7 +289,7 @@
  * ADV timeout callback
  */   
 // ANDREA: mbedOS
-#ifdef YOTTA_CFG_MBED_OS
+#ifdef AST_FOR_MBED_OS
 static void advTimeoutCB(void)
 {
     Gap::GapState_t state;
@@ -316,7 +316,7 @@
 
     }
 }
-#endif /* YOTTA_CFG_MBED_OS */
+#endif /* AST_FOR_MBED_OS */
     
 /**************************************************************************/
 /*!
@@ -456,7 +456,7 @@
     if(params.getTimeout() != 0) {
         PRINTF("!!! attaching to!!!\n");
         // ANDREA: mbedOS
-#ifdef YOTTA_CFG_MBED_OS
+#ifdef AST_FOR_MBED_OS
         minar::Scheduler::postCallback(advTimeoutCB).delay(minar::milliseconds(params.getTimeout()));
 #else
         advTimeout.attach(advTimeoutCB, params.getTimeout());