mirror of
https://github.com/holub/mame
synced 2025-05-13 09:28:13 +03:00
Fixed some issues with serial device (no whatsnew)
This commit is contained in:
parent
3cd6ddc322
commit
41ce518e84
@ -98,13 +98,13 @@ void serial_image_device::device_start()
|
|||||||
transmit_register_reset();
|
transmit_register_reset();
|
||||||
receive_register_reset();
|
receive_register_reset();
|
||||||
|
|
||||||
set_transmit_state(m_transmit_on_start ? 1 :0);
|
|
||||||
|
|
||||||
device_serial_interface *intf = NULL;
|
device_serial_interface *intf = NULL;
|
||||||
|
if (m_tag_connected) {
|
||||||
device_t *dev = machine().device(m_tag_connected);
|
device_t *dev = machine().device(m_tag_connected);
|
||||||
if (dev!=NULL && dev->interface(intf)) {
|
if (dev!=NULL && dev->interface(intf)) {
|
||||||
intf->connect(this);
|
intf->connect(this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
@ -290,6 +290,7 @@ bool serial_image_device::call_load()
|
|||||||
if (load_internal(&data, &data_length))
|
if (load_internal(&data, &data_length))
|
||||||
{
|
{
|
||||||
data_stream_init(&m_transmit, data, data_length);
|
data_stream_init(&m_transmit, data, data_length);
|
||||||
|
set_transmit_state(m_transmit_on_start ? 1 :0);
|
||||||
return IMAGE_INIT_PASS;
|
return IMAGE_INIT_PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user