diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-02-14 19:08:53 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-02-14 19:08:53 -0500 |
commit | ba938abf24b5807c450fb654c8e99f145579cee2 (patch) | |
tree | 07a877b62aaa4c34234d5bdc744452b0ae390f7c /src/devices/machine/ay31015.cpp | |
parent | df5a2321041bccdc0f6ed9c05d030e99c2127f82 (diff) |
ay31015.cpp: Fix unresolved callback disaster (nw)
Diffstat (limited to 'src/devices/machine/ay31015.cpp')
-rw-r--r-- | src/devices/machine/ay31015.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/machine/ay31015.cpp b/src/devices/machine/ay31015.cpp index f0e8fe2a97a..c5dc7f7a613 100644 --- a/src/devices/machine/ay31015.cpp +++ b/src/devices/machine/ay31015.cpp @@ -230,7 +230,8 @@ inline void ay31015_device::update_status_pin(uint8_t reg_bit, ay31015_output_pi if (new_value != m_pins[pin]) { m_pins[pin] = new_value; - write_cb(new_value); + if (!write_cb.isnull()) + write_cb(new_value); } } |