diff options
author | Vas Crabb <vas@vastheman.com> | 2020-08-23 11:13:56 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2020-08-23 11:13:56 +1000 |
commit | 164ef47ad2a2db22b599f42b5cf5cccde98323b7 (patch) | |
tree | af8848d4eba614fb27e6ec6fc022fb69ee100b0a /src/mame/machine | |
parent | 9be5a580607e56aac2b427621fa8a1f29745287e (diff) |
srcclean for 0.224
Diffstat (limited to 'src/mame/machine')
-rw-r--r-- | src/mame/machine/bacta_datalogger.cpp | 16 | ||||
-rw-r--r-- | src/mame/machine/nl_tank.cpp | 2 | ||||
-rw-r--r-- | src/mame/machine/nl_tank.h | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/machine/bacta_datalogger.cpp b/src/mame/machine/bacta_datalogger.cpp index 816c24ca095..64bcd8eb582 100644 --- a/src/mame/machine/bacta_datalogger.cpp +++ b/src/mame/machine/bacta_datalogger.cpp @@ -16,7 +16,7 @@ BACTA Datalogger emulation The British Amusement and Catering Trade Association created a standard for the tracking of statistics and other features on British AWPs across hardware manufacturers. - The specification is very simple, a 1200 baud null modem connection via RS232, with the logger sending an + The specification is very simple, a 1200 baud null modem connection via RS232, with the logger sending an ACK command (0x06) on receipt of a valid character, and NAK (0x15) on error. In this emulation, the simplest possible device is simulated here, derived from the RS232 null_modem. We only handle the feedback for acknowledgment, and limited logging. @@ -53,7 +53,7 @@ void bacta_datalogger_device::device_reset() int startbits = 1; int databits = 8; parity_t parity = device_serial_interface::PARITY_ODD; - stop_bits_t stopbits = device_serial_interface::STOP_BITS_1; + stop_bits_t stopbits = device_serial_interface::STOP_BITS_1; set_data_frame(startbits, databits, parity, stopbits); @@ -95,7 +95,7 @@ void bacta_datalogger_device::rcv_complete() receive_register_extract(); - data = get_received_char(); + data = get_received_char(); if (data != 0x00) { if (data > 0x80) @@ -106,7 +106,7 @@ void bacta_datalogger_device::rcv_complete() { return; } - } + } m_last_input = data; switch (data) { @@ -200,7 +200,7 @@ void bacta_datalogger_device::rcv_complete() case 0x7f: LOGDATA("(%c) User defined message (0x%x), next byte is message length\n",data,data); break; - + default: LOGDATA("(%c) Received: %02x\n",data, data); break; @@ -209,11 +209,11 @@ void bacta_datalogger_device::rcv_complete() tx_queue(); } else - { - if (data != 0x00) + { + if (data != 0x00) { m_output_char = 0x15;//NAK tx_queue(); } } -}
\ No newline at end of file +} diff --git a/src/mame/machine/nl_tank.cpp b/src/mame/machine/nl_tank.cpp index cf82f52ccf8..e956d12a09c 100644 --- a/src/mame/machine/nl_tank.cpp +++ b/src/mame/machine/nl_tank.cpp @@ -1928,4 +1928,4 @@ NETLIST_START(tank) NET_C(VCC, IC_J11.9, IC_J11.11, IC_J11.13) NET_C(VCC, IC_J3.9) NET_C(VCC, IC_N13.1, IC_N13.13) -NETLIST_END()
\ No newline at end of file +NETLIST_END() diff --git a/src/mame/machine/nl_tank.h b/src/mame/machine/nl_tank.h index fd480c03810..f3cc88d7cf1 100644 --- a/src/mame/machine/nl_tank.h +++ b/src/mame/machine/nl_tank.h @@ -9,4 +9,4 @@ NETLIST_EXTERNAL(tank) -#endif // MAME_MACHINE_NL_TANK_H
\ No newline at end of file +#endif // MAME_MACHINE_NL_TANK_H |