summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/pmd85.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/pmd85.cpp')
-rw-r--r--src/mame/machine/pmd85.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/mame/machine/pmd85.cpp b/src/mame/machine/pmd85.cpp
index 8e3829a64c5..1d8157bda59 100644
--- a/src/mame/machine/pmd85.cpp
+++ b/src/mame/machine/pmd85.cpp
@@ -624,18 +624,6 @@ void pmd85_state::mato_io_w(offs_t offset, uint8_t data)
}
}
-void pmd85_state::device_timer(emu_timer &timer, device_timer_id id, int param)
-{
- switch (id)
- {
- case TIMER_CASSETTE:
- cassette_timer_callback(param);
- break;
- default:
- throw emu_fatalerror("Unknown id in pmd85_state::device_timer");
- }
-}
-
TIMER_CALLBACK_MEMBER(pmd85_state::cassette_timer_callback)
{
bool data;
@@ -708,7 +696,7 @@ void pmd85_state::common_driver_init()
{
m_previous_level = 0;
m_clk_level = m_clk_level_tape = 1;
- m_cassette_timer = timer_alloc(TIMER_CASSETTE);
+ m_cassette_timer = timer_alloc(FUNC(pmd85_state::cassette_timer_callback), this);
m_cassette_timer->adjust(attotime::zero, 0, attotime::from_hz(2400));
}