forked from M-Labs/ionpak-thermostat
work around ADC sample rate snafu
This commit is contained in:
parent
f156c7c6d1
commit
e676cb59bf
|
@ -53,7 +53,8 @@ fn get_time_ms() -> u64 {
|
||||||
let adc_irq_count = cortex_m::interrupt::free(|cs| {
|
let adc_irq_count = cortex_m::interrupt::free(|cs| {
|
||||||
ADC_IRQ_COUNT.borrow(cs).get()
|
ADC_IRQ_COUNT.borrow(cs).get()
|
||||||
});
|
});
|
||||||
adc_irq_count*6/125
|
// FIXME: this should be adc_irq_count*6/125
|
||||||
|
adc_irq_count*4*6/125
|
||||||
}
|
}
|
||||||
|
|
||||||
static LOOP_ANODE: Mutex<RefCell<loop_anode::Controller>> = Mutex::new(RefCell::new(
|
static LOOP_ANODE: Mutex<RefCell<loop_anode::Controller>> = Mutex::new(RefCell::new(
|
||||||
|
|
Loading…
Reference in New Issue