make version new type inner value accessible

This commit is contained in:
2026-01-05 17:24:55 +01:00
parent 0bb359cdc6
commit bb9e232005
+2 -2
View File
@@ -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<I>(i2c_dev: &mut I) -> Result<Self, BmsProtocolError>
@@ -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<I>(i2c_dev: &mut I) -> Result<Self, BmsProtocolError>