Skip to content

Commit 70af909

Browse files
committed
Prepare namespace macro for current mbed version
Prepare namespace macro for adapting the library to the used mbed version
1 parent 947ec7b commit 70af909

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/utility/HCICordioTransport.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747

4848
#include "HCICordioTransport.h"
4949

50+
#if (MBED_VERSION > MBED_ENCODE_VERSION(6, 2, 0))
51+
#define BLE_NAMESPACE ble
52+
#else
53+
#define BLE_NAMESPACE ble::cordio::vendor
54+
#endif
55+
5056
extern ble::CordioHCIDriver& ble_cordio_get_hci_driver();
5157

5258
namespace ble {

0 commit comments

Comments
 (0)