Changed motor controller config window to target Rinehart Motion controllers instead of my custom controller.
Yes, I still need to move it into dynamic library and out of the main program.
This commit is contained in:
@@ -41,7 +41,7 @@ dc SnifferItem::dataChange(uchar i) const
|
||||
((uchar*) &mLastMarker.data)[i] &&
|
||||
!((uchar*) &mNotch)[i] )
|
||||
{
|
||||
return ((uchar*) &mCurrent.data)[i] >= ((uchar*) &mLast.data)[i] ? dc::INC : dc::DEC;
|
||||
return ((uchar*) &mCurrent.data)[i] >= ((uchar*) &mLast.data)[i] ? dc::INC : dc::DEINC;
|
||||
}
|
||||
|
||||
return dc::NO;
|
||||
|
||||
@@ -15,7 +15,7 @@ enum dc
|
||||
{
|
||||
NO,
|
||||
INC,
|
||||
DEC
|
||||
DEINC
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ QVariant SnifferModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
case dc::INC:
|
||||
return QBrush(Qt::green);
|
||||
case dc::DEC:
|
||||
case dc::DEINC:
|
||||
return QBrush(Qt::red);
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user