mirror of
https://github.com/italicsjenga/mppt-modbus.git
synced 2025-01-27 17:46:49 +11:00
actually change the scaling info
This commit is contained in:
parent
a19cad3b64
commit
db48c34a5b
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue