summaryrefslogtreecommitdiffstats
path: root/src/common/port/parallel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/port/parallel.cpp')
-rw-r--r--src/common/port/parallel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/port/parallel.cpp b/src/common/port/parallel.cpp
index d92bc82..daa0c6a 100644
--- a/src/common/port/parallel.cpp
+++ b/src/common/port/parallel.cpp
@@ -203,8 +203,8 @@ bool Port::Parallel::setPinOn(uint pin, bool on, LogicType type)
Q_ASSERT( PIN_DATA[pin].dir==Out );
RequestType rtype = PIN_DATA[pin].rType;
Q_ASSERT( rtype!=Nb_RequestTypes );
- uchar tqmask = PIN_DATA[pin].tqmask;
- uchar c = (XOR(type==NegativeLogic, on) ? _images[rtype] | tqmask : _images[rtype] & ~tqmask);
+ uchar mask = PIN_DATA[pin].mask;
+ uchar c = (XOR(type==NegativeLogic, on) ? _images[rtype] | mask : _images[rtype] & ~mask);
int request = REQUEST_DATA[rtype].write;
Q_ASSERT( request!=0 );
if ( ioctl(_fd, request, &c)<0 ) {
@@ -232,7 +232,7 @@ bool Port::Parallel::readPin(uint pin, LogicType type, bool &value)
return false;
}
_images[rtype] = c;
- value = (type==NegativeLogic ? ~c : c ) & PIN_DATA[pin].tqmask;
+ value = (type==NegativeLogic ? ~c : c ) & PIN_DATA[pin].mask;
#endif
return true;
}