Skip to content

Commit

Permalink
framework_lib: Format PD version as hex
Browse files Browse the repository at this point in the history
BIOS setup menu displays it as hex and we usually refer to it as such.

Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Dec 13, 2024
1 parent b7bf240 commit 6f33a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework_lib/src/ccgx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl fmt::Display for BaseVersion {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"{}.{}.{}.{:0>3}",
"{:X}.{:X}.{:X}.{:03X}",
self.major, self.minor, self.patch, self.build_number
)
}
Expand Down Expand Up @@ -163,7 +163,7 @@ pub struct AppVersion {

impl fmt::Display for AppVersion {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}.{}.{:0>2}", self.major, self.minor, self.circuit)
write!(f, "{:X}.{:X}.{:02X}", self.major, self.minor, self.circuit)
}
}

Expand Down

0 comments on commit 6f33a24

Please sign in to comment.