I don't know why this is happening.
Fork of BLE_API by
Diff: public/Gap.h
- Revision:
- 146:543877bb1f52
- Parent:
- 143:8bdf577b1598
- Child:
- 244:aa639ef2f290
diff -r a7ded9ad83c8 -r 543877bb1f52 public/Gap.h --- a/public/Gap.h Fri Nov 21 09:23:25 2014 +0000 +++ b/public/Gap.h Fri Nov 28 14:11:19 2014 +0000 @@ -61,10 +61,14 @@ uint16_t connectionSupervisionTimeout; /**< Connection Supervision Timeout in 10 ms units, see @ref BLE_GAP_CP_LIMITS.*/ } ConnectionParams_t; - static const uint16_t UNIT_1_25_MS = 1250; /**< Number of microseconds in 1.25 milliseconds. */ + static const uint16_t UNIT_1_25_MS = 1250; /**< Number of microseconds in 1.25 milliseconds. */ + static const uint16_t UNIT_0_625_MS = 650; /**< Number of microseconds in 0.625 milliseconds. */ static uint16_t MSEC_TO_GAP_DURATION_UNITS(uint32_t durationInMillis) { return (durationInMillis * 1000) / UNIT_1_25_MS; } + static uint16_t MSEC_TO_ADVERTISEMENT_DURATION_UNITS(uint32_t durationInMillis) { + return (durationInMillis * 1000) / UNIT_0_625_MS; + } typedef void (*EventCallback_t)(void); typedef void (*ConnectionEventCallback_t)(Handle_t, addr_type_t peerAddrType, const address_t peerAddr, const ConnectionParams_t *);