Skip to content

Commit ab02abf

Browse files
committed
--pdports: Remove name
This host command currently does not return the same indeces on every system, need to figure out how to properly get the names. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 851007f commit ab02abf

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

framework_lib/src/power.rs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -782,31 +782,10 @@ impl From<u8> for CypdPdDataRole {
782782
}
783783

784784
pub fn get_and_print_cypd_pd_info(ec: &CrosEc) {
785-
let fl16 = Some(PlatformFamily::Framework16) == smbios::get_family();
786785
let ports = 4u8;
787786

788787
for port in 0..ports {
789-
println!(
790-
"USB-C Port {} ({}):",
791-
port,
792-
match port {
793-
0 => "Right Front",
794-
1 =>
795-
if fl16 {
796-
"Right Middle"
797-
} else {
798-
"Right Back"
799-
},
800-
2 =>
801-
if fl16 {
802-
"Left Middle"
803-
} else {
804-
"Left Back"
805-
},
806-
3 => "Left Front",
807-
_ => "??",
808-
}
809-
);
788+
println!("USB-C Port {}:", port);
810789

811790
let result = EcRequestGetPdPortState { port }.send_command(ec);
812791
match result {

0 commit comments

Comments
 (0)