PwmLimits: Save user value into flash

In place of the machine value derived from the pwm duty.
This commit is contained in:
atse 2024-08-08 17:44:32 +08:00
parent 0d48e0df43
commit 41cd60be63

View File

@ -13,9 +13,9 @@ pub struct PwmLimits {
impl PwmLimits {
pub fn new(channels: &mut Channels, channel: usize) -> Self {
let max_v = channels.get_max_v(channel).0;
let max_i_pos = channels.get_max_i_pos(channel).0;
let max_i_neg = channels.get_max_i_neg(channel).0;
let max_v = channels.get_max_v(channel).1;
let max_i_pos = channels.get_max_i_pos(channel).1;
let max_i_neg = channels.get_max_i_neg(channel).1;
PwmLimits {
max_v,
max_i_pos,