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) { unsigned int count; - count = FREQ / 1000 / 8 * interval_in_ms; + count = FREQ * interval_in_ms / 1000 / 8; if(count > 0xffff) { |