From a661adff1f569c799e0bae7623cd57ff6629dae6 Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 24 Apr 2019 18:49:41 -0400 Subject: MT 07297 (nw) --- src/mame/drivers/namcos22.cpp | 4 ++-- src/mame/includes/namcos22.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mame/drivers/namcos22.cpp b/src/mame/drivers/namcos22.cpp index 263d68cbb8e..ba19a296fa9 100644 --- a/src/mame/drivers/namcos22.cpp +++ b/src/mame/drivers/namcos22.cpp @@ -2855,9 +2855,9 @@ READ8_MEMBER(namcos22s_state::mcu_port6_r) } template -u16 namcos22s_state::mcu_adc_r(offs_t offset) +u16 namcos22s_state::mcu_adc_r() { - return m_adc_ports[offset].read_safe(0); + return m_adc_ports[Channel].read_safe(0); } void namcos22s_state::mcu_program(address_map &map) diff --git a/src/mame/includes/namcos22.h b/src/mame/includes/namcos22.h index 284a71722f3..f61174d4457 100644 --- a/src/mame/includes/namcos22.h +++ b/src/mame/includes/namcos22.h @@ -571,7 +571,7 @@ private: DECLARE_READ8_MEMBER(mcu_port5_r); DECLARE_WRITE8_MEMBER(mcu_port6_w); DECLARE_READ8_MEMBER(mcu_port6_r); - template u16 mcu_adc_r(offs_t offset); + template u16 mcu_adc_r(); DECLARE_WRITE8_MEMBER(alpine_mcu_port4_w); DECLARE_READ16_MEMBER(mcu130_speedup_r); DECLARE_READ16_MEMBER(mcu141_speedup_r); -- cgit v1.2.3