forked from M-Labs/thermostat
PwmLimits: Save user value into flash
In place of the machine value derived from the pwm duty.
This commit is contained in:
parent
0d48e0df43
commit
41cd60be63
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user