diff options
author | wilbertpol <wilbertpol@users.noreply.github.com> | 2018-05-20 19:27:20 +0200 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2018-05-20 13:27:20 -0400 |
commit | 2beba4ce73fad917c7159a39939bace54f76494b (patch) | |
tree | e9d33c059bc5045f13d0c1748f0a044650370b8d /src/mame/machine/wangpckb.cpp | |
parent | acf93837ac21b2b0bb003d1649b893200c269812 (diff) |
Replace set_led_value and set_lamp_value with output_finders. [Wilbe… (#3592)
* Replace set_led_value and set_lamp_value with output_finders. [Wilbert Pol]
* segaufo: keep the 2 bit lamp outputs
Diffstat (limited to 'src/mame/machine/wangpckb.cpp')
-rw-r--r-- | src/mame/machine/wangpckb.cpp | 3 |
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); |