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.
This commit is contained in:
Astro 2019-03-18 21:40:47 +01:00
parent 3770fe743a
commit 7423f23969

View File

@ -9,7 +9,7 @@ use stm32f4xx_hal::{
}; };
/// rate in Hz /// rate in Hz
const TIMER_RATE: u32 = 100; const TIMER_RATE: u32 = 10;
/// interval duration in milliseconds /// interval duration in milliseconds
const TIMER_DELTA: u32 = 1000 / TIMER_RATE; const TIMER_DELTA: u32 = 1000 / TIMER_RATE;
/// Elapsed time in milliseconds /// Elapsed time in milliseconds