summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/rs232/printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/rs232/printer.cpp')
-rw-r--r--src/devices/bus/rs232/printer.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/bus/rs232/printer.cpp b/src/devices/bus/rs232/printer.cpp
index fb87c9ead79..b8b1ec87d34 100644
--- a/src/devices/bus/rs232/printer.cpp
+++ b/src/devices/bus/rs232/printer.cpp
@@ -16,11 +16,10 @@ serial_printer_device::serial_printer_device(const machine_config &mconfig, cons
{
}
-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));
-}
+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
static INPUT_PORTS_START(serial_printer)
MCFG_RS232_BAUD("RS232_RXBAUD", RS232_BAUD_9600, "RX Baud", serial_printer_device, update_serial)