summaryrefslogtreecommitdiffstats
path: root/src/mame/machine/wangpckb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/wangpckb.cpp')
-rw-r--r--src/mame/machine/wangpckb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/machine/wangpckb.cpp b/src/mame/machine/wangpckb.cpp
index 62fec62a771..59a4cbf0cf4 100644
--- a/src/mame/machine/wangpckb.cpp
+++ b/src/mame/machine/wangpckb.cpp
@@ -371,6 +371,7 @@ wangpc_keyboard_device::wangpc_keyboard_device(const machine_config &mconfig, co
m_maincpu(*this, I8051_TAG),
m_y(*this, "Y%u", 0),
m_txd_handler(*this),
+ m_led(*this, "led%u", 0U),
m_keylatch(0),
m_rxd(1)
{
@@ -533,7 +534,7 @@ WRITE8_MEMBER( wangpc_keyboard_device::kb_p1_w )
for (int i = 0; i < 6; i++)
{
- machine().output().set_led_value(i, !BIT(data, i));
+ m_led[i] = BIT(~data, i);
}
//if (LOG) logerror("P1 %02x\n", data);