Updated ValueHandling.
This commit is contained in:
@@ -298,13 +298,13 @@ void BCMainWindow::onConnectButtonToggled(bool checked )
|
||||
//_dataManager.setDriverConnectionState( checked );
|
||||
}
|
||||
|
||||
void BCMainWindow::onValueUpdated(BCDevice::ID deviceID, int index, BCValue::State state, const QString& newValue )
|
||||
void BCMainWindow::onValueUpdated(BCDevice::ID deviceID, int index, BCValue::Flag state, uint32_t rawValue )
|
||||
{
|
||||
qDebug() << "Reply: from: " << deviceID << " at: " << index << "finished. Success:" << (uint8_t)state << " on:" << newValue;
|
||||
qDebug() << "Reply: from: " << deviceID << " at: " << index << "finished. Success:" << (uint8_t)state << " on:" << rawValue;
|
||||
if( _devicePanels.contains( deviceID ) )
|
||||
{
|
||||
BCDeviceView& panel = *_devicePanels[deviceID];
|
||||
panel.onValueUpdated( index, state, newValue );
|
||||
panel.updateValue( index, state, rawValue );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,7 +332,7 @@ void BCMainWindow::onSyncDeviceView()
|
||||
{
|
||||
qDebug() << " --- ### begin sync of value: " << QThread::currentThreadId() << " : " << value->label;
|
||||
// wir setzen auf 'lesen'
|
||||
value->state.setFlag( BCValue::State::ReadMe );
|
||||
value->flags.setFlag( BCValue::Flag::ReadMe );
|
||||
|
||||
_syncButton->setEnabled( false );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user