summaryrefslogtreecommitdiffstats
path: root/src/devices/imagedev/microdrv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/imagedev/microdrv.cpp')
-rw-r--r--src/devices/imagedev/microdrv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/imagedev/microdrv.cpp b/src/devices/imagedev/microdrv.cpp
index aecaee95f81..02168270523 100644
--- a/src/devices/imagedev/microdrv.cpp
+++ b/src/devices/imagedev/microdrv.cpp
@@ -70,7 +70,7 @@ void microdrive_image_device::device_start()
m_right = std::make_unique<uint8_t[]>(MDV_IMAGE_LENGTH / 2);
// allocate timers
- m_bit_timer = timer_alloc();
+ m_bit_timer = timer_alloc(FUNC(microdrive_image_device::bit_timer), this);
m_bit_timer->adjust(attotime::zero, 0, attotime::from_hz(MDV_BITRATE));
m_bit_timer->enable(0);
@@ -106,7 +106,7 @@ void microdrive_image_device::call_unload()
memset(m_right.get(), 0, MDV_IMAGE_LENGTH / 2);
}
-void microdrive_image_device::device_timer(emu_timer &timer, device_timer_id id, int param)
+TIMER_CALLBACK_MEMBER(microdrive_image_device::bit_timer)
{
m_bit_offset++;