From db48c34a5bedbfb2bdde3557ef9a5a33ec05cbad Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Sun, 18 Dec 2022 14:50:40 +1100 Subject: [PATCH] actually change the scaling info --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2e898fa..3cbe63a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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);