summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-04-24 18:49:41 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-04-24 18:49:41 -0400
commita661adff1f569c799e0bae7623cd57ff6629dae6 (patch)
tree4ade4b6c2429aeac05b4f3fd8c7eec7a74776658
parentd2ebfc2d7fde886516f239773ddc108241e73ee2 (diff)
MT 07297 (nw)
-rw-r--r--src/mame/drivers/namcos22.cpp4
-rw-r--r--src/mame/includes/namcos22.h2
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 <int Channel>
-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 <int Channel> u16 mcu_adc_r(offs_t offset);
+ template <int Channel> u16 mcu_adc_r();
DECLARE_WRITE8_MEMBER(alpine_mcu_port4_w);
DECLARE_READ16_MEMBER(mcu130_speedup_r);
DECLARE_READ16_MEMBER(mcu141_speedup_r);