This commit is contained in:
Astro 2020-09-14 00:12:28 +02:00
parent 1849e6f5e7
commit b1b6d1ea94
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,8 @@ impl Channels {
let dac_value = {
let state = self.channel_state(channel);
let pid_output = state.update_pid(instant, data);
state.update(instant, data);
let pid_output = state.update_pid();
if state.pid_engaged {
Some(pid_output)

View File

@ -42,7 +42,6 @@ pub fn now() -> u32 {
/// block for at least `amount` milliseconds
pub fn sleep(amount: u32) {
use crate::timer::now;
let start = now();
while now() - start <= amount {}
}