actually change the scaling info

This commit is contained in:
Alex Janka 2022-12-18 14:50:40 +11:00
parent a19cad3b64
commit db48c34a5b

View file

@ -117,6 +117,11 @@ fn main() {
(info, ram_data, eeprom_data, None) (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 { match args.command {
Some(Commands::Get { name }) => { Some(Commands::Get { name }) => {
let t = match_datapoint(name.as_str(), &eeprom_data); let t = match_datapoint(name.as_str(), &eeprom_data);