From 6f33a24733738e939ad45521fa7bdbfcc8b37de0 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Fri, 13 Dec 2024 17:44:09 +0800 Subject: [PATCH] framework_lib: Format PD version as hex BIOS setup menu displays it as hex and we usually refer to it as such. Signed-off-by: Daniel Schaefer --- framework_lib/src/ccgx/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework_lib/src/ccgx/mod.rs b/framework_lib/src/ccgx/mod.rs index 185d103..71f187b 100644 --- a/framework_lib/src/ccgx/mod.rs +++ b/framework_lib/src/ccgx/mod.rs @@ -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 ) } @@ -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) } }