diff --git a/memory.c b/memory.c index 07cca7e..03fe3d3 100644 --- a/memory.c +++ b/memory.c @@ -110,7 +110,7 @@ void _ahb_flush_to(enum AHBDEV dev) { } //NOTE: 0xd8b000x, not 0xd8b400x! u32 val = _mc_read32(0xd8b0008); - if(val & mask) { + if(!(val & mask)) { switch(dev) { // 2 to 10 in IOS, add more case AHB_NAND: