From dbcaafe5610e9e554bd5e373f65da4cef7648ed6 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Mon, 13 Aug 2018 15:56:20 +0200 Subject: [PATCH] STM32L1 assert in SetSysClock replaced --- .../TARGET_NUCLEO_L152RE/device/system_clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device/system_clock.c index 2da2ab0329..fb85aaccac 100644 --- a/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device/system_clock.c @@ -29,7 +29,7 @@ */ #include "stm32l1xx.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -114,8 +114,8 @@ void SetSysClock(void) if (SetSysClock_PLL_HSI() == 0) #endif { - while(1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } }