From ead552f22cef6082b7955fc4212f215d83870e48 Mon Sep 17 00:00:00 2001 From: justinkim Date: Mon, 16 Jul 2018 14:44:15 +0900 Subject: [PATCH] fix timer Interrupt callback function bug --- targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c b/targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c index a479a58cb9..e027f60201 100644 --- a/targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c +++ b/targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c @@ -51,11 +51,8 @@ extern "C"{ void DUALTIMER0_Handler(void) { - if(DUALTIMER_GetIntStatus(DUALTIMER0_0)) - { - DUALTIMER_IntClear(DUALTIMER0_0); - us_ticker_irq_handler(); - } + DUALTIMER_IntClear(DUALTIMER0_0); + us_ticker_irq_handler(); } #ifdef __cplusplus