From 7423f23969607e3e4d69529185291ca5027fc4b4 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 18 Mar 2019 21:40:47 +0100 Subject: [PATCH] timer: lower TIMER_RATE to 10 Hz 1 Hz would be sufficient for the current OUTPUT_INTERVAL but that seems too low for the hardware. --- src/timer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer.rs b/src/timer.rs index 99b76a2..3592a79 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -9,7 +9,7 @@ use stm32f4xx_hal::{ }; /// rate in Hz -const TIMER_RATE: u32 = 100; +const TIMER_RATE: u32 = 10; /// interval duration in milliseconds const TIMER_DELTA: u32 = 1000 / TIMER_RATE; /// Elapsed time in milliseconds