Skip to content

Commit 3f02cdc

Browse files
committed
--pd-info: Bail early if PD isn't there
If silicon ID can't be read then likely the PD isn't there. Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 8c5ce06 commit 3f02cdc

File tree

1 file changed

+1
-0
lines changed
  • framework_lib/src/commandline

1 file changed

+1
-0
lines changed

framework_lib/src/commandline/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ fn print_single_pd_details(pd: &PdController) {
220220
println!(" Silicon ID: 0x{:X}", si);
221221
} else {
222222
println!(" Failed to read Silicon ID/Family");
223+
return;
223224
}
224225
if let Ok((mode, frs)) = pd.get_device_info() {
225226
println!(" Mode: {:?}", mode);

0 commit comments

Comments
 (0)