mirror of
https://github.com/italicsjenga/mppt-modbus.git
synced 2024-12-23 16:51:30 +11:00
actually change the scaling info
This commit is contained in:
parent
a19cad3b64
commit
db48c34a5b
|
@ -117,6 +117,11 @@ fn main() {
|
|||
(info, ram_data, eeprom_data, None)
|
||||
};
|
||||
|
||||
if let Ok(mut info) = INFO_SCALE.lock() {
|
||||
info.v_scale = _info.v_scale;
|
||||
info.i_scale = _info.i_scale;
|
||||
};
|
||||
|
||||
match args.command {
|
||||
Some(Commands::Get { name }) => {
|
||||
let t = match_datapoint(name.as_str(), &eeprom_data);
|
||||
|
|
Loading…
Reference in a new issue