Merge PR #36: deConz: Remove unused/redundant firmware version string members
This commit is contained in:
commit
5ccf077941
@ -56,12 +56,6 @@ DeconzNetworkConfiguration ZigbeeBridgeControllerDeconz::networkConfiguration()
|
|||||||
return m_networkConfiguration;
|
return m_networkConfiguration;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZigbeeBridgeControllerDeconz::setFirmwareVersionString(const QString &firmwareVersion)
|
|
||||||
{
|
|
||||||
m_firmwareVersion = firmwareVersion;
|
|
||||||
emit firmwareVersionChanged(m_firmwareVersion);
|
|
||||||
}
|
|
||||||
|
|
||||||
Deconz::NetworkState ZigbeeBridgeControllerDeconz::networkState() const
|
Deconz::NetworkState ZigbeeBridgeControllerDeconz::networkState() const
|
||||||
{
|
{
|
||||||
return m_networkState;
|
return m_networkState;
|
||||||
|
|||||||
@ -83,7 +83,6 @@ public:
|
|||||||
~ZigbeeBridgeControllerDeconz() override;
|
~ZigbeeBridgeControllerDeconz() override;
|
||||||
|
|
||||||
DeconzNetworkConfiguration networkConfiguration() const;
|
DeconzNetworkConfiguration networkConfiguration() const;
|
||||||
void setFirmwareVersionString(const QString &firmwareVersion);
|
|
||||||
|
|
||||||
Deconz::NetworkState networkState() const;
|
Deconz::NetworkState networkState() const;
|
||||||
void rebootController();
|
void rebootController();
|
||||||
|
|||||||
@ -491,9 +491,9 @@ void ZigbeeNetworkDeconz::runNetworkInitProcess()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!m_firmwareVersion.isEmpty()) {
|
if (!m_firmwareVersion.isEmpty()) {
|
||||||
m_controller->setFirmwareVersionString(QString("%1 - %2").arg(m_firmwareVersion).arg(m_protocolVersion));
|
m_controller->setFirmwareVersion(QString("%1 - %2").arg(m_firmwareVersion).arg(m_protocolVersion));
|
||||||
} else {
|
} else {
|
||||||
m_controller->setFirmwareVersionString(m_protocolVersion);
|
m_controller->setFirmwareVersion(m_protocolVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
qCDebug(dcZigbeeNetwork()) << "Reading current network state";
|
qCDebug(dcZigbeeNetwork()) << "Reading current network state";
|
||||||
|
|||||||
Reference in New Issue
Block a user