diff --git a/src/devices/system.c b/src/devices/system.c index 53655d9..3f55aad 100644 --- a/src/devices/system.c +++ b/src/devices/system.c @@ -132,13 +132,14 @@ system_expansion_uxn38_device(Uxn *u, Uint8 *ram, Uint16 addr) { Uint8 dev_id = ram[addr + 1]; Uint8 *uuid = &ram[addr + 2]; - if(dev_id == 0x10 && uuid_eq(uuid, console_uuid) != 0) { - ram[addr + 18] = 0x00; - ram[addr + 19] = 0xff; - } else { - ram[addr + 18] = 0x00; - ram[addr + 19] = 0x00; - } + if(uuid_eq(uuid, console_uuid) != 0) + if(dev_id == 0x10) { + ram[addr + 18] = 0x00; + ram[addr + 19] = 0xff; + } else { + ram[addr + 18] = 0x00; + ram[addr + 19] = 0x00; + } } /* IO */