diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/ble-host/sources/sec/common/sec_ecc_debug.c b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/ble-host/sources/sec/common/sec_ecc_debug.c index 1ab2e8583d..e146af4f5d 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/ble-host/sources/sec/common/sec_ecc_debug.c +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/stack/ble-host/sources/sec/common/sec_ecc_debug.c @@ -22,6 +22,8 @@ */ /*************************************************************************************************/ +#if defined(SEC_ECC_CFG) + #include #include #include @@ -35,10 +37,6 @@ #include "hci_api.h" #include "util/calc128.h" -#ifndef SEC_ECC_CFG -#define SEC_ECC_CFG SEC_ECC_CFG_DEBUG -#endif - #if SEC_ECC_CFG == SEC_ECC_CFG_DEBUG /* Debug Keys */ @@ -158,3 +156,4 @@ void SecEccInit() } #endif /* SEC_ECC_CFG */ +#endif /* defined(SEC_ECC_CFG) */