Skip to content

Commit 6c9fda4

Browse files
committed
[NUC472/M453] Fix lp_ticker typo
1 parent ea7a0fd commit 6c9fda4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

targets/TARGET_NUVOTON/TARGET_M451/lp_ticker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ timestamp_t lp_ticker_read()
138138
while (minor_clks == 0 || minor_clks == TMR2_CLK_PER_TMR2_INT);
139139

140140
// Add power-down compensation
141-
return ((uint64_t) major_minor_clks * US_PER_SEC / TMR3_CLK_PER_SEC / US_PER_TICK);
141+
return ((uint64_t) major_minor_clks * US_PER_SEC / TMR2_CLK_PER_SEC / US_PER_TICK);
142142
}
143143
while (0);
144144
}

targets/TARGET_NUVOTON/TARGET_NUC472/lp_ticker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ timestamp_t lp_ticker_read()
137137
while (minor_clks == 0 || minor_clks == TMR2_CLK_PER_TMR2_INT);
138138

139139
// Add power-down compensation
140-
return ((uint64_t) major_minor_clks * US_PER_SEC / TMR3_CLK_PER_SEC / US_PER_TICK);
140+
return ((uint64_t) major_minor_clks * US_PER_SEC / TMR2_CLK_PER_SEC / US_PER_TICK);
141141
}
142142
while (0);
143143
}

0 commit comments

Comments
 (0)