mirror of
https://github.com/italicsjenga/mppt-modbus.git
synced 2024-12-23 08:41:30 +11:00
set value
This commit is contained in:
parent
fd4747c15d
commit
afe4885c4c
|
@ -279,4 +279,9 @@ fn main() {
|
|||
};
|
||||
|
||||
println!("eeprom: {:#?}", eeprom_data);
|
||||
let value = 50.;
|
||||
let value_scaled = ((value / info.v_scale) / f32::powf(2., -15.)) as u16;
|
||||
// modbus
|
||||
// .write_register(OffsetsEeprom::EV_soc_g_gy as u16, value_scaled)
|
||||
// .expect("could not set value");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue