From e99dc63d1b3044e0afffe9a22bfcce2a5f2be1a4 Mon Sep 17 00:00:00 2001 From: ccli8 Date: Tue, 27 Jun 2017 09:36:51 +0800 Subject: [PATCH] [M487] Fix lp_ticker typo --- targets/TARGET_NUVOTON/TARGET_M480/lp_ticker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M480/lp_ticker.c b/targets/TARGET_NUVOTON/TARGET_M480/lp_ticker.c index 8161ed7b13..cbd5ac7dcc 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/lp_ticker.c +++ b/targets/TARGET_NUVOTON/TARGET_M480/lp_ticker.c @@ -140,7 +140,7 @@ timestamp_t lp_ticker_read() while (minor_clks == 0 || minor_clks == TMR2_CLK_PER_TMR2_INT); // Add power-down compensation - return ((uint64_t) major_minor_clks * US_PER_SEC / TMR3_CLK_PER_SEC / US_PER_TICK); + return ((uint64_t) major_minor_clks * US_PER_SEC / TMR2_CLK_PER_SEC / US_PER_TICK); } while (0); }