mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix version reporting bug
u8 encoded field has to be masked before expanding to u16
This commit is contained in:
parent
ca7be97dfd
commit
a1c7abd66d
1 changed files with 4 additions and 4 deletions
|
|
@ -291,10 +291,10 @@ impl Llio {
|
|||
if let xous::Result::Scalar2(val1, val2) = response {
|
||||
Ok(
|
||||
SemVer {
|
||||
maj: (val1 >> 24) as u16,
|
||||
min: (val1 >> 16) as u16,
|
||||
rev: (val1 >> 8) as u16,
|
||||
extra: (val1 >> 0) as u16,
|
||||
maj: ((val1 >> 24) & 0xff) as u16,
|
||||
min: ((val1 >> 16) & 0xff) as u16,
|
||||
rev: ((val1 >> 8) & 0xff) as u16,
|
||||
extra: ((val1 >> 0) & 0xff) as u16,
|
||||
commit: Some(val2 as u32),
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue