6840ptm.c: Fixed mode check in set_gate() [J Wallace]

This commit is contained in:
Phil Bennett 2011-05-05 20:19:18 +00:00
parent 6605e70546
commit aa36ff470a

View File

@ -644,7 +644,7 @@ void ptm6840_device::timeout(int idx)
void ptm6840_device::set_gate(int idx, int state) 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]) if (state == 0 && m_gate[idx])
{ {