forked from M-Labs/thermostat
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:
parent
3770fe743a
commit
7423f23969
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user