make version new type inner value accessible
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user