mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix scalar5 return parsing
there isn't an arg0 in the `ScalarMessage` return type but that doesn't mean numbering starts at 1. So the first slot should remain unused if you're not casting a return value to `MessageId` (which is "just" a `usize` but "feels wrong")
This commit is contained in:
parent
017e7b1492
commit
da0d08f7b6
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ impl IframRange {
|
|||
_ => 2,
|
||||
};
|
||||
match send_message(conn, Message::new_blocking_scalar(0 /* MapIram */, length, bank_code, 0, 0)) {
|
||||
Ok(Result::Scalar5(maybe_size, maybe_phys_address, _, _, _)) => {
|
||||
Ok(Result::Scalar5(_, maybe_size, maybe_phys_address, _, _)) => {
|
||||
if maybe_size != 0 && maybe_phys_address != 0 {
|
||||
let mut page_aligned_size = maybe_size / 4096;
|
||||
if maybe_size % 4096 != 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue