From 61d2cd6ecf7a436f209a17488c89d31a9fcfd7af Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 25 Sep 2020 22:56:23 +0200 Subject: [PATCH] channels: init i_set at centerpoint --- src/channels.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/channels.rs b/src/channels.rs index eb46b13..9e38170 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -52,6 +52,7 @@ impl Channels { for channel in 0..CHANNELS { channels.channel_state(channel).vref = channels.read_vref(channel); channels.calibrate_dac_value(channel); + channels.set_i(channel, ElectricCurrent::new::(0.0)); } channels }