diff options
Diffstat (limited to 'src/electronics/port.cpp')
-rw-r--r-- | src/electronics/port.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/electronics/port.cpp b/src/electronics/port.cpp index ec74bfc..124fe1d 100644 --- a/src/electronics/port.cpp +++ b/src/electronics/port.cpp @@ -277,7 +277,7 @@ void ParallelPort::reset() { m_file = -1; m_reg[Data] = 0; - m_reg[tqStatus] = 0; + m_reg[Status] = 0; m_reg[Control] = 0; m_outputPins = INPUT_MODE_BIT | IRTQ_MODE_BIT; m_inputPins = ALWAYS_INPUT_PINS | INPUT_MODE_BIT | IRTQ_MODE_BIT; @@ -309,7 +309,7 @@ int ParallelPort::pinState( int pins ) value |= ((readFromRegister( Data ) & ((pins & DATA_PINS) >> 0)) << 0); if ( pins & STATUS_PINS ) - value |= ((readFromRegister( tqStatus ) & ((pins & STATUS_PINS) >> 8)) << 8); + value |= ((readFromRegister( Status ) & ((pins & STATUS_PINS) >> 8)) << 8); if ( pins & CONTROL_PINS ) value |= ((readFromRegister( Control ) & ((pins & CONTROL_PINS) >> 16)) << 16); |