Use constants rather than hard coded stuff

This commit is contained in:
Gwilym Kuiper 2021-08-16 21:20:29 +01:00
parent 81e9789272
commit c8ac436b84

View file

@ -85,7 +85,7 @@ mod test {
let address = &*first_box as *const _ as usize;
assert!(
address >= 0x0200_0000 && address < 0x0204_0000,
address >= super::EWRAM_START && address < super::EWRAM_END,
"ewram is located between 0x0200_0000 and 0x0204_0000, address was actually found to be {:#010X}",
address
);