Skip to content

Commit 43f1ab0

Browse files
committed
--pdports: Show V,A,W as negotiated
Misleading previously, because it's not instantenous measurements. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 6a25547 commit 43f1ab0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

framework_lib/src/power.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -831,12 +831,13 @@ pub fn get_and_print_cypd_pd_info(ec: &CrosEc) {
831831
if info.vconn != 0 { "On" } else { "Off" }
832832
);
833833
println!(
834-
" Voltage: {}.{:03} V",
834+
" Negotiated: {}.{:03} V, {} mA, {}.{} W",
835835
voltage / 1000,
836-
voltage % 1000
836+
voltage % 1000,
837+
current,
838+
watts_mw / 1000,
839+
watts_mw % 1000,
837840
);
838-
println!(" Current: {} mA", current);
839-
println!(" Power: {}.{} W", watts_mw / 1000, watts_mw % 1000);
840841
println!(
841842
" EPR: {}{}",
842843
if info.epr_active != 0 {

0 commit comments

Comments
 (0)