diff options
author | Timothy Pearson <[email protected]> | 2011-12-18 18:13:30 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-18 18:13:30 -0600 |
commit | abb8cd68f820cfe0c96965136890a6bdd1093db5 (patch) | |
tree | 0ccc113047cebed06b5bd61adeadab4330b7d4a0 /src/electronics/components/parallelportcomponent.cpp | |
parent | c1ef065782051db96cdfd32cf55be6408c2a9d22 (diff) | |
download | ktechlab-abb8cd68f820cfe0c96965136890a6bdd1093db5.tar.gz ktechlab-abb8cd68f820cfe0c96965136890a6bdd1093db5.zip |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/electronics/components/parallelportcomponent.cpp')
-rw-r--r-- | src/electronics/components/parallelportcomponent.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/electronics/components/parallelportcomponent.cpp b/src/electronics/components/parallelportcomponent.cpp index 7a2ac55..22f1584 100644 --- a/src/electronics/components/parallelportcomponent.cpp +++ b/src/electronics/components/parallelportcomponent.cpp @@ -99,20 +99,20 @@ ParallelPortComponent::ParallelPortComponent( ICNDocument *icnDocument, bool new //END Data register - //BEGIN tqStatus register + //BEGIN Status register TQString statusNames[] = { "ERR", "ON", "PE", "ACK", "BUSY" }; // The statusIDs are referenced in the save file and must not change TQString statusIDs[] = { "ERROR", "ONLINE", "PE", "ACK", "BUSY" }; - // Bits 0...2 in the tqStatus register are not used + // Bits 0...2 in the Status register are not used for ( int i = 3; i < 8; ++i ) { TQString id = statusIDs[i-3]; TQString name = statusNames[i-3]; // Bit 3 (pin 15) doesn't not follow the same positioning pattern as - // the other pins in the tqStatus register. + // the other pins in the Status register. if ( i == 3 ) { pin = createPin( 40, -72, 180, id ); @@ -126,7 +126,7 @@ ParallelPortComponent::ParallelPortComponent( ICNDocument *icnDocument, bool new m_pLogic[i+8] = createLogicOut( pin, false ); } - //END tqStatus register + //END Status register //BEGIN Control register @@ -228,8 +228,8 @@ void ParallelPortComponent::controlCallback( bool ) void ParallelPortComponent::stepNonLogic() { - uchar status = m_pParallelPort->readFromRegister( ParallelPort::tqStatus ); - // Bits 0...2 in the tqStatus register are not used + uchar status = m_pParallelPort->readFromRegister( ParallelPort::Status ); + // Bits 0...2 in the Status register are not used for ( int i = 3; i < 8; ++i ) m_pLogic[i + 8]->setHigh( status | (1 << i) ); } |