summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/bacta_datalogger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/bacta_datalogger.cpp')
-rw-r--r--src/mame/machine/bacta_datalogger.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/machine/bacta_datalogger.cpp b/src/mame/machine/bacta_datalogger.cpp
index b7ffc7b6d13..de229723505 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.
@@ -29,13 +29,13 @@ DEFINE_DEVICE_TYPE(BACTA_DATALOGGER, bacta_datalogger_device, "bacta_datalogger"
// bacta_datalogger_device - constructor
//-------------------------------------------------
-bacta_datalogger_device::bacta_datalogger_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : bacta_datalogger_device(mconfig, BACTA_DATALOGGER, tag, owner, clock)
+bacta_datalogger_device::bacta_datalogger_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ bacta_datalogger_device(mconfig, BACTA_DATALOGGER, tag, owner, clock)
{
}
-bacta_datalogger_device::bacta_datalogger_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, BACTA_DATALOGGER, tag, owner, clock),
+bacta_datalogger_device::bacta_datalogger_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) :
+ device_t(mconfig, BACTA_DATALOGGER, tag, owner, clock),
device_serial_interface(mconfig, *this),
m_rxd_handler(*this),
m_last_input(-1),
@@ -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()
LOGDATA("Retransmission of %x\n",data);
}
m_last_input = data;
- }
+ }
switch (data)
{
case 0x01:
@@ -199,7 +199,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;
@@ -208,8 +208,8 @@ void bacta_datalogger_device::rcv_complete()
tx_queue();
}
else
- {
- if (data != 0x00)
+ {
+ if (data != 0x00)
{
m_output_char = 0x15;//NAK
tx_queue();