Debug updates.
This commit is contained in:
10
bcvalue.cpp
10
bcvalue.cpp
@@ -55,9 +55,15 @@ QString BCValue::formatValue() const
|
||||
|
||||
bool BCValue::isWord() const
|
||||
{
|
||||
return flags.testFlag(BCValue::Flag::IsWord);
|
||||
return valueFlags.testFlag(BCValue::Flag::IsWord);
|
||||
}
|
||||
|
||||
bool BCValue::isReadOnly() const
|
||||
{
|
||||
return valueFlags.testFlag(BCValue::Flag::ReadOnly);
|
||||
}
|
||||
|
||||
|
||||
double BCValue::calcRatio() const
|
||||
{
|
||||
return 0.33;
|
||||
@@ -88,7 +94,7 @@ void BCValue::dumpValue() const
|
||||
|
||||
qDebug() << "DeviceID: " << deviceID << " Register: " << registerID << " state:" " << state << " << " label: " << label;
|
||||
qDebug() << "formattedValue: " << formatValue() << " min: " << optMin << " max: " << optMax << " factor: " << factor << " ValueType: " << (char)valueType << " ";
|
||||
qDebug() << "indexRow: " << indexRow << " isWord: " << isWord();
|
||||
qDebug() << "indexRow: " << indexRow << " isWord: " << isWord() << " isRO: " << isReadOnly();
|
||||
qDebug();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user