From dc02be705a91001aca825392c0f4b11c1f40ad2f Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Mon, 13 Aug 2018 15:04:02 +0200 Subject: [PATCH] STM32F1 assert in SetSysClock replaced --- .../TARGET_NUCLEO_F103RB/device/system_clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/system_clock.c b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/system_clock.c index 370937ae1b..abbadf5c65 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/system_clock.c @@ -35,7 +35,7 @@ */ #include "stm32f1xx.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -145,8 +145,8 @@ void SetSysClock(void) if (SetSysClock_PLL_HSI() == 0) #endif { - while(1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } }