diff options
Diffstat (limited to 'src/devices/bus/rs232/printer.cpp')
-rw-r--r-- | src/devices/bus/rs232/printer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/bus/rs232/printer.cpp b/src/devices/bus/rs232/printer.cpp index b8b1ec87d34..fb87c9ead79 100644 --- a/src/devices/bus/rs232/printer.cpp +++ b/src/devices/bus/rs232/printer.cpp @@ -16,10 +16,11 @@ serial_printer_device::serial_printer_device(const machine_config &mconfig, cons { } -MACHINE_CONFIG_START(serial_printer_device::device_add_mconfig) - MCFG_DEVICE_ADD("printer", PRINTER, 0) - MCFG_PRINTER_ONLINE_CB(WRITELINE(*this, serial_printer_device, printer_online)) -MACHINE_CONFIG_END +void serial_printer_device::device_add_mconfig(machine_config &config) +{ + PRINTER(config, m_printer, 0); + m_printer->online_callback().set(FUNC(serial_printer_device::printer_online)); +} static INPUT_PORTS_START(serial_printer) MCFG_RS232_BAUD("RS232_RXBAUD", RS232_BAUD_9600, "RX Baud", serial_printer_device, update_serial) |