mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
make disk sizing errors non-fatal in hosted mode
it can be innocuous in the case that you're changing sizes for debugging
This commit is contained in:
parent
9419ed6078
commit
8af8926ad1
1 changed files with 3 additions and 1 deletions
|
|
@ -43,7 +43,9 @@ fn flashmem() -> &'static mut FlashSingleton {
|
||||||
} else {
|
} else {
|
||||||
match disk.read_to_end(&mut memory) {
|
match disk.read_to_end(&mut memory) {
|
||||||
Ok(bytes_read) => {
|
Ok(bytes_read) => {
|
||||||
assert!(bytes_read == PDDB_A_LEN, "PDDB disk image is of an incorrect size, refusing to run!");
|
if bytes_read != PDDB_A_LEN {
|
||||||
|
log::warn!("PDDB disk image is of an incorrect size: got {}, expected {}", bytes_read, PDDB_A_LEN);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
panic!("Can't read PDDB disk image, refusing to run!");
|
panic!("Can't read PDDB disk image, refusing to run!");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue