Skip to content

Commit

Permalink
ccgx: Lign up Version info nicely
Browse files Browse the repository at this point in the history
Before:

```
Left / Ports 01
  Silicon ID:     0x3000
  Mode:           MainFw
  Flash Row Size: 128 B
  Bootloader Version: Base: 3.4.0.420,  App: 0.0.2 (Notebook)
  FW1 (Backup) Version: Base: 3.4.0.425,  App: 0.1.44 (Notebook)
  FW2 (Main)   Version: Base: 3.4.0.425,  App: 0.1.44 (Notebook)
```

After:

```
Left / Ports 01
  Silicon ID:     0x3000
  Mode:           MainFw
  Flash Row Size: 128 B
  Bootloader Version:   Base: 3.4.0.420,  App: 0.0.02 (Notebook)
  FW1 (Backup) Version: Base: 3.4.0.425,  App: 0.1.44 (Notebook)
  FW2 (Main)   Version: Base: 3.4.0.425,  App: 0.1.44 (Notebook)
```

Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Oct 24, 2023
1 parent 13a2b40 commit 181dc9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework_lib/src/ccgx/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ impl PdController {
let base_ver = BaseVersion::from(&data[..4]);
let app_ver = AppVersion::from(&data[4..]);
println!(
" Bootloader Version: Base: {}, App: {}",
" Bootloader Version: Base: {}, App: {}",
base_ver, app_ver
);

Expand Down
2 changes: 1 addition & 1 deletion framework_lib/src/ccgx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ impl fmt::Display for AppVersion {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"{}.{}.{} ({:?})",
"{}.{}.{:0>2} ({:?})",
self.major, self.minor, self.circuit, self.application
)
}
Expand Down

0 comments on commit 181dc9c

Please sign in to comment.