From aa36ff470a87bd06fa29f1b0e18dd392a2804330 Mon Sep 17 00:00:00 2001 From: Phil Bennett Date: Thu, 5 May 2011 20:19:18 +0000 Subject: [PATCH] 6840ptm.c: Fixed mode check in set_gate() [J Wallace] --- src/emu/machine/6840ptm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/machine/6840ptm.c b/src/emu/machine/6840ptm.c index 6b909c35a7f..83dc27d824b 100644 --- a/src/emu/machine/6840ptm.c +++ b/src/emu/machine/6840ptm.c @@ -644,7 +644,7 @@ void ptm6840_device::timeout(int idx) void ptm6840_device::set_gate(int idx, int state) { - if ( (m_mode[idx] == 0) || (m_mode[idx] == 2) || (m_mode[0] == 4) || (m_mode[idx] == 6) ) + if ((m_mode[idx] & 1) == 0) { if (state == 0 && m_gate[idx]) {