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 BLE_API by
Diff: hw/nrf51822.cpp
- Revision:
- 12:2c6b1059ed36
- Parent:
- 11:200931be5617
- Child:
- 13:a585c98b6abc
--- a/hw/nrf51822.cpp Tue Dec 17 17:28:41 2013 +0000
+++ b/hw/nrf51822.cpp Wed Dec 18 04:55:56 2013 +0000
@@ -115,7 +115,7 @@
}
/* Check timeout is zero for Connectable Directed */
- if ((params.getAdvertisingType() == GapAdvertisingParams::ADV_CONNECTABLE_DIRECTED) ||
+ if ((params.getAdvertisingType() == GapAdvertisingParams::ADV_CONNECTABLE_DIRECTED) &&
(params.getTimeout() != 0))
{
#if NRF51822_DEBUG_MODE
@@ -127,7 +127,7 @@
}
/* Check timeout for other advertising types */
- if ((params.getAdvertisingType() != GapAdvertisingParams::ADV_CONNECTABLE_DIRECTED) ||
+ if ((params.getAdvertisingType() != GapAdvertisingParams::ADV_CONNECTABLE_DIRECTED) &&
(params.getTimeout() > GAP_ADV_PARAMS_TIMEOUT_MAX))
{
#if NRF51822_DEBUG_MODE
@@ -483,7 +483,7 @@
ble_error_t nRF51822::reset(void)
{
#if NRF51822_DEBUG_MODE
- printf("Restting the radio ... ");
+ printf("Resetting the radio ... ");
#endif
/* Command ID = 0x0005, No payload */
