From 1e7bab8470ffe53bdf5b14f0a0cf29bc336b54df Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Mon, 30 Nov 2020 20:20:03 -0300 Subject: [PATCH] Make POST card PCjr detection a little more specific --- src/device/postcard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device/postcard.c b/src/device/postcard.c index 896f60b8b..b9f409589 100644 --- a/src/device/postcard.c +++ b/src/device/postcard.c @@ -94,7 +94,7 @@ postcard_reset(void) static void postcard_write(uint16_t port, uint8_t val, void *priv) { - if (postcard_written && val == postcard_code) + if (postcard_written && (val == postcard_code)) return; postcard_prev_code = postcard_code; @@ -117,7 +117,7 @@ postcard_init(const device_t *info) postcard_port = 0x190; /* ISA PS/2 machines */ else if (strstr(machines[machine].name, " IBM XT ")) postcard_port = 0x60; /* IBM XT */ - else if (strstr(machines[machine].name, "PCjr")) + else if (strstr(machines[machine].name, " IBM PCjr")) postcard_port = 0x10; /* IBM PCjr */ else if (strstr(machines[machine].name, " Compaq ") && !(machines[machine].flags & MACHINE_PCI)) postcard_port = 0x84; /* ISA Compaq machines */