From c9982871701fe518f0621904dc0be4cc323340f6 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Mon, 10 Dec 2018 13:47:14 +0000 Subject: [PATCH] fixed ARM compilation problem caused by noreturn --- .../FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp index e0b2700d10..0e1de42804 100644 --- a/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp +++ b/features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp @@ -48,7 +48,8 @@ wsfHandlerId_t stack_handler_id; */ MBED_WEAK ble::vendor::cordio::CordioHCIDriver& ble_cordio_get_hci_driver() { - error("Please provide an implementation for the HCI driver"); + MBED_ASSERT("No HCI driver"); + printf("Please provide an implementation for the HCI driver"); ble::vendor::cordio::CordioHCIDriver* bad_instance = NULL; return *bad_instance; }