MiFlash fail fix