diff options
Diffstat (limited to 'src/devices/machine/k056230.cpp')
-rw-r--r-- | src/devices/machine/k056230.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/devices/machine/k056230.cpp b/src/devices/machine/k056230.cpp index 8d750b66a8a..f641b799147 100644 --- a/src/devices/machine/k056230.cpp +++ b/src/devices/machine/k056230.cpp @@ -54,12 +54,7 @@ READ8_MEMBER(k056230_device::read) return 0; } -TIMER_CALLBACK( k056230_device::network_irq_clear_callback ) -{ - reinterpret_cast<k056230_device*>(ptr)->network_irq_clear(); -} - -void k056230_device::network_irq_clear() +TIMER_CALLBACK_MEMBER(k056230_device::network_irq_clear) { if (m_cpu) m_cpu->set_input_line(INPUT_LINE_IRQ2, CLEAR_LINE); @@ -84,7 +79,7 @@ WRITE8_MEMBER(k056230_device::write) if (m_cpu) m_cpu->set_input_line(INPUT_LINE_IRQ2, ASSERT_LINE); - machine().scheduler().timer_set(attotime::from_usec(10), FUNC(network_irq_clear_callback), 0, (void*)this); + machine().scheduler().timer_set(attotime::from_usec(10), timer_expired_delegate(FUNC(k056230_device::network_irq_clear), this)); } } // else |