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) } }