Skip to content

Commit 669259f

Browse files
committed
power: Fix position of PD ports on Framework 16
framework_tool --pdports Fixes: #221 Signed-off-by: Daniel Schaefer <[email protected]>
1 parent bba3daa commit 669259f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

framework_lib/src/power.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -731,19 +731,18 @@ pub fn get_and_print_pd_info(ec: &CrosEc) {
731731
port,
732732
match port {
733733
0 => "Right Back",
734-
1 => "Right Front",
735-
2 =>
736-
if fl16 {
737-
"Left Middle"
734+
1 => if fl16 {
735+
"Right Middle"
738736
} else {
739-
"Left Front"
737+
"Right Front"
740738
},
741-
3 =>
739+
2 =>
742740
if fl16 {
743741
"Left Middle"
744742
} else {
745-
"Left Back"
743+
"Left Front"
746744
},
745+
3 => "Left Back",
747746
_ => "??",
748747
}
749748
);

0 commit comments

Comments
 (0)