diff --git a/src/channels.rs b/src/channels.rs index 93fa1f8..63dbe85 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -134,7 +134,7 @@ impl Channels { voltage } - pub fn get_i(&mut self, channel: usize) -> (ElectricCurrent, ElectricCurrent) { + pub fn get_i_set(&mut self, channel: usize) -> (ElectricCurrent, ElectricCurrent) { let center_point = self.get_center(channel); let r_sense = ElectricalResistance::new::(R_SENSE); let voltage = self.get_dac(channel); @@ -521,7 +521,7 @@ impl Channels { PwmSummary { channel, center: CenterPointJson(self.channel_state(channel).center.clone()), - i_set: self.get_i(channel).into(), + i_set: self.get_i_set(channel).into(), max_v: self.get_max_v(channel).into(), max_i_pos: self.get_max_i_pos(channel).into(), max_i_neg: self.get_max_i_neg(channel).into(),