From bb9e232005bda73ef7ce4afc21d85dc7963ed5c8 Mon Sep 17 00:00:00 2001 From: ju6ge Date: Mon, 5 Jan 2026 17:21:08 +0100 Subject: [PATCH] make version new type inner value accessible --- lib-bms-protocol/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib-bms-protocol/src/lib.rs b/lib-bms-protocol/src/lib.rs index 0b61641..64a3401 100644 --- a/lib-bms-protocol/src/lib.rs +++ b/lib-bms-protocol/src/lib.rs @@ -48,7 +48,7 @@ impl BmsWriteable for BmsSoftwareReset { #[derive(Debug)] #[repr(transparent)] -pub struct ProtocolVersion(u32); +pub struct ProtocolVersion(pub u32); impl BmsReadable for ProtocolVersion { fn read_from_i2c(i2c_dev: &mut I) -> Result @@ -71,7 +71,7 @@ impl BmsReadable for ProtocolVersion { #[derive(Debug)] #[repr(transparent)] -pub struct FirmwareVersion(u32); +pub struct FirmwareVersion(pub u32); impl BmsReadable for FirmwareVersion { fn read_from_i2c(i2c_dev: &mut I) -> Result