Removed 'Default' field in BCValue.
This commit is contained in:
@@ -41,6 +41,14 @@
|
|||||||
#include <bcvalue.h>
|
#include <bcvalue.h>
|
||||||
#include <bcdrivertinycan.h>
|
#include <bcdrivertinycan.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Die BCTransmitter Klasse kapselt die Kommunikation mit dem
|
||||||
|
* Treiber und läuft dazu in einem eigenen Thread. Werte, also BCValues,
|
||||||
|
* die gelesen oder geschrieben werden sollen, landen in einer Queue und
|
||||||
|
* werden nacheinander bearbeitet. Der Transmitter enthält auch den
|
||||||
|
* eigentlichen CAN-Bus Treiber (BCDriver). Dieser kann unterschiedlich
|
||||||
|
* implementiert sein und liest/schreibt Byteweise auf den Bus.
|
||||||
|
*/
|
||||||
|
|
||||||
class BCTransmitter : public QObject, public BCAbstractTransmitter
|
class BCTransmitter : public QObject, public BCAbstractTransmitter
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -172,7 +172,6 @@ void BCXmlLoader::loadXmlBikeDeviceData(BCDevice::ID deviceID)
|
|||||||
{
|
{
|
||||||
.ID = id,
|
.ID = id,
|
||||||
.Label = _xml.attributes().value(BCTags::Label).toString(),
|
.Label = _xml.attributes().value(BCTags::Label).toString(),
|
||||||
.Default = _xml.attributes().value(BCTags::Default).toString(),
|
|
||||||
.UnitType = _xml.attributes().value(BCTags::UnitType).toString(),
|
.UnitType = _xml.attributes().value(BCTags::UnitType).toString(),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -242,8 +241,6 @@ std::optional<BCValue> BCXmlLoader::makeDataValue( BCDevice::ID deviceID, const
|
|||||||
setIfExists( params.Max, newValue.max );
|
setIfExists( params.Max, newValue.max );
|
||||||
*/
|
*/
|
||||||
newValue->label = params.Label;
|
newValue->label = params.Label;
|
||||||
newValue->defaultValue = params.Default;
|
|
||||||
|
|
||||||
qDebug() << " --- created: " << params.Label;
|
qDebug() << " --- created: " << params.Label;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ protected:
|
|||||||
{
|
{
|
||||||
QString ID;
|
QString ID;
|
||||||
QString Label;
|
QString Label;
|
||||||
QString Default;
|
|
||||||
QString UnitType;
|
QString UnitType;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -78,9 +77,6 @@ protected:
|
|||||||
|
|
||||||
QXmlStreamReader _xml;
|
QXmlStreamReader _xml;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BCXMLLOADER_H
|
#endif // BCXMLLOADER_H
|
||||||
|
|||||||
Reference in New Issue
Block a user