diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c index 745b5fba2e..6da8a1b057 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c | |||
@@ -139,7 +139,7 @@ static void tick_start(unsigned int interval_in_ms) | |||
139 | { | 139 | { |
140 | unsigned int count; | 140 | unsigned int count; |
141 | 141 | ||
142 | count = FREQ / 1000 / 8 * interval_in_ms; | 142 | count = FREQ * interval_in_ms / 1000 / 8; |
143 | 143 | ||
144 | if(count > 0xffff) | 144 | if(count > 0xffff) |
145 | { | 145 | { |