Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of X_NUCLEO_IDB0XA1 by
Diff: source/BlueNRGGap.cpp
- Revision:
- 135:f0b6cf8ac4fc
- Parent:
- 132:51056160fa4a
- Child:
- 138:32e3c4ca7a45
--- a/source/BlueNRGGap.cpp Wed Oct 07 14:34:24 2015 +0200 +++ b/source/BlueNRGGap.cpp Wed Oct 07 15:35:34 2015 +0200 @@ -261,7 +261,7 @@ { PRINTF("Advertising type: ADVERTISING_INTERVAL\n\r"); advtInterval = (uint16_t)(*loadPtr.getUnitAtIndex(index).getDataPtr()); - PRINTF("advtInterval=%d\n\r", advtInterval); + PRINTF("advtInterval=%d\n\r", (int)advtInterval); break; } case GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA: /**< Manufacturer Specific Data */ @@ -289,7 +289,7 @@ * ADV timeout callback */ // ANDREA: mbedOS -#ifdef YOTTA_CFG +#ifdef YOTTA_CFG_MBED_OS static void advTimeoutCB(void) { Gap::GapState_t state; @@ -316,7 +316,7 @@ } } -#endif /* YOTTA_CFG */ +#endif /* YOTTA_CFG_MBED_OS */ /**************************************************************************/ /*! @@ -456,7 +456,7 @@ if(params.getTimeout() != 0) { PRINTF("!!! attaching to!!!\n"); // ANDREA: mbedOS -#ifdef YOTTA_CFG +#ifdef YOTTA_CFG_MBED_OS minar::Scheduler::postCallback(advTimeoutCB).delay(minar::milliseconds(params.getTimeout())); #else advTimeout.attach(advTimeoutCB, params.getTimeout());