From 4e172ba22d401da315cab6a755072e3aed9bd740 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Thu, 28 Feb 2019 16:31:34 +0000 Subject: [PATCH] BLE - Fix conditional directive. --- .../FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.tpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.tpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.tpp index 1407d62f85..2e24183b1f 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.tpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioPalGap.tpp @@ -580,7 +580,7 @@ void Gap::gap_handler(const wsfMsgHdr_t *msg) handler->on_periodic_advertising_sync_loss(evt->syncHandle); } break; -#endif BLE_FEATURE_PERIODIC_ADVERTISING +#endif // BLE_FEATURE_PERIODIC_ADVERTISING #if BLE_FEATURE_EXTENDED_ADVERTISING && BLE_ROLE_BROADCASTER case DM_SCAN_REQ_RCVD_IND: { @@ -684,8 +684,8 @@ void Gap::gap_handler(const wsfMsgHdr_t *msg) ); } break; - } #endif // BLE_ROLE_CENTRAL || BLE_ROLE_PERIPHERAL + } // all handlers are stored in a static array static const event_handler_t handlers[] = {