mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix allocation bug for ifram
This commit is contained in:
parent
a8012a6e01
commit
5a8d5a8de5
1 changed files with 1 additions and 1 deletions
|
|
@ -96,10 +96,10 @@ fn try_alloc(ifram_allocs: &mut Vec<Option<Sender>>, size: usize, sender: Sender
|
|||
} else {
|
||||
if free_start.is_some() {
|
||||
log::trace!("Adding unallocated page at {} to length", index);
|
||||
found_len += 1;
|
||||
if found_len >= size_pages {
|
||||
break;
|
||||
}
|
||||
found_len += 1;
|
||||
} else {
|
||||
log::trace!("Starting allocation search at {}", index);
|
||||
free_start = Some(index);
|
||||
|
|
|
|||
Loading…
Reference in a new issue