From 40512509aed9187686f39c7c957fea108e344afa Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 11 Nov 2020 14:42:59 +0100 Subject: [PATCH] Fix some typos --- .../backends/deconz/zigbeebridgecontrollerdeconz.cpp | 2 +- libnymea-zigbee/zcl/closures/zigbeeclusterdoorlock.cpp | 2 +- libnymea-zigbee/zcl/general/zigbeeclusterlevelcontrol.cpp | 4 ++-- libnymea-zigbee/zcl/general/zigbeeclusteronoff.cpp | 4 ++-- libnymea-zigbee/zcl/lighting/zigbeeclustercolorcontrol.cpp | 2 +- .../zcl/measurement/zigbeeclusterilluminancemeasurment.cpp | 2 +- .../zcl/measurement/zigbeeclusteroccupancysensing.cpp | 2 +- .../zigbeeclusterrelativehumiditymeasurement.cpp | 2 +- .../zcl/measurement/zigbeeclustertemperaturemeasurement.cpp | 2 +- libnymea-zigbee/zcl/ota/zigbeeclusterota.cpp | 2 +- libnymea-zigbee/zcl/security/zigbeeclusteriaszone.cpp | 2 +- libnymea-zigbee/zcl/zigbeecluster.cpp | 6 +++--- libnymea-zigbee/zigbeenetwork.h | 2 +- libnymea-zigbee/zigbeenode.cpp | 2 +- libnymea-zigbee/zigbeenode.h | 2 +- libnymea-zigbee/zigbeenodeendpoint.h | 2 +- 16 files changed, 20 insertions(+), 20 deletions(-) diff --git a/libnymea-zigbee/backends/deconz/zigbeebridgecontrollerdeconz.cpp b/libnymea-zigbee/backends/deconz/zigbeebridgecontrollerdeconz.cpp index 0902357..1b632ec 100644 --- a/libnymea-zigbee/backends/deconz/zigbeebridgecontrollerdeconz.cpp +++ b/libnymea-zigbee/backends/deconz/zigbeebridgecontrollerdeconz.cpp @@ -961,7 +961,7 @@ void ZigbeeBridgeControllerDeconz::onInterfacePackageReceived(const QByteArray & } // We got a notification, lets set the current sequence number to the notification id, - // so the next request will be a continuouse increase + // so the next request will be a continuous increase m_sequenceNumber = sequenceNumber + 1; // No request for this data, lets check which notification and process the data diff --git a/libnymea-zigbee/zcl/closures/zigbeeclusterdoorlock.cpp b/libnymea-zigbee/zcl/closures/zigbeeclusterdoorlock.cpp index 6d3170a..07941de 100644 --- a/libnymea-zigbee/zcl/closures/zigbeeclusterdoorlock.cpp +++ b/libnymea-zigbee/zcl/closures/zigbeeclusterdoorlock.cpp @@ -137,7 +137,7 @@ void ZigbeeClusterDoorLock::processDataIndication(ZigbeeClusterLibrary::Frame fr { //qCDebug(dcZigbeeCluster()) << "Processing cluster frame" << m_node << m_endpoint << this << frame; - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; qCWarning(dcZigbeeCluster()) << "Unhandled ZCL indication in" << m_node << m_endpoint << this << frame; diff --git a/libnymea-zigbee/zcl/general/zigbeeclusterlevelcontrol.cpp b/libnymea-zigbee/zcl/general/zigbeeclusterlevelcontrol.cpp index b10c9c5..2b19434 100644 --- a/libnymea-zigbee/zcl/general/zigbeeclusterlevelcontrol.cpp +++ b/libnymea-zigbee/zcl/general/zigbeeclusterlevelcontrol.cpp @@ -113,7 +113,7 @@ void ZigbeeClusterLevelControl::setAttribute(const ZigbeeClusterAttribute &attri emit attributeChanged(attribute); } - // Parse the information for convinience + // Parse the information for convenience if (attribute.id() == AttributeCurrentLevel) { bool valueOk = false; quint8 value = attribute.dataType().toUInt8(&valueOk); @@ -130,7 +130,7 @@ void ZigbeeClusterLevelControl::processDataIndication(ZigbeeClusterLibrary::Fram { qCDebug(dcZigbeeCluster()) << "Processing cluster frame" << m_node << m_endpoint << this << frame; - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; switch (m_direction) { diff --git a/libnymea-zigbee/zcl/general/zigbeeclusteronoff.cpp b/libnymea-zigbee/zcl/general/zigbeeclusteronoff.cpp index 3bfb98c..3b8911f 100644 --- a/libnymea-zigbee/zcl/general/zigbeeclusteronoff.cpp +++ b/libnymea-zigbee/zcl/general/zigbeeclusteronoff.cpp @@ -87,7 +87,7 @@ void ZigbeeClusterOnOff::setAttribute(const ZigbeeClusterAttribute &attribute) emit attributeChanged(attribute); } - // Parse the information for convinience + // Parse the information for convenience if (attribute.id() == AttributeOnOff) { bool valueOk = false; bool value = attribute.dataType().toBool(&valueOk); @@ -104,7 +104,7 @@ void ZigbeeClusterOnOff::processDataIndication(ZigbeeClusterLibrary::Frame frame { qCDebug(dcZigbeeCluster()) << "Processing cluster frame" << m_node << m_endpoint << this << frame; - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; switch (m_direction) { diff --git a/libnymea-zigbee/zcl/lighting/zigbeeclustercolorcontrol.cpp b/libnymea-zigbee/zcl/lighting/zigbeeclustercolorcontrol.cpp index 3f300a3..b5cd507 100644 --- a/libnymea-zigbee/zcl/lighting/zigbeeclustercolorcontrol.cpp +++ b/libnymea-zigbee/zcl/lighting/zigbeeclustercolorcontrol.cpp @@ -230,7 +230,7 @@ void ZigbeeClusterColorControl::processDataIndication(ZigbeeClusterLibrary::Fram { qCDebug(dcZigbeeCluster()) << "Processing cluster frame" << m_node << m_endpoint << this << frame; - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; } diff --git a/libnymea-zigbee/zcl/measurement/zigbeeclusterilluminancemeasurment.cpp b/libnymea-zigbee/zcl/measurement/zigbeeclusterilluminancemeasurment.cpp index 26ce6bd..a7d61cd 100644 --- a/libnymea-zigbee/zcl/measurement/zigbeeclusterilluminancemeasurment.cpp +++ b/libnymea-zigbee/zcl/measurement/zigbeeclusterilluminancemeasurment.cpp @@ -47,7 +47,7 @@ void ZigbeeClusterIlluminanceMeasurment::setAttribute(const ZigbeeClusterAttribu emit attributeChanged(attribute); } - // Parse the information for convinience + // Parse the information for convenience if (attribute.id() == AttributeMeasuredValue) { bool valueOk = false; quint16 value = attribute.dataType().toUInt16(&valueOk); diff --git a/libnymea-zigbee/zcl/measurement/zigbeeclusteroccupancysensing.cpp b/libnymea-zigbee/zcl/measurement/zigbeeclusteroccupancysensing.cpp index c37c0ab..f99588c 100644 --- a/libnymea-zigbee/zcl/measurement/zigbeeclusteroccupancysensing.cpp +++ b/libnymea-zigbee/zcl/measurement/zigbeeclusteroccupancysensing.cpp @@ -47,7 +47,7 @@ void ZigbeeClusterOccupancySensing::setAttribute(const ZigbeeClusterAttribute &a emit attributeChanged(attribute); } - // Parse the information for convinience + // Parse the information for convenience if (attribute.id() == AttributeOccupancy) { bool valueOk = false; bool value = attribute.dataType().toBool(&valueOk); diff --git a/libnymea-zigbee/zcl/measurement/zigbeeclusterrelativehumiditymeasurement.cpp b/libnymea-zigbee/zcl/measurement/zigbeeclusterrelativehumiditymeasurement.cpp index fb28d35..e6ff5a9 100644 --- a/libnymea-zigbee/zcl/measurement/zigbeeclusterrelativehumiditymeasurement.cpp +++ b/libnymea-zigbee/zcl/measurement/zigbeeclusterrelativehumiditymeasurement.cpp @@ -47,7 +47,7 @@ void ZigbeeClusterRelativeHumidityMeasurement::setAttribute(const ZigbeeClusterA emit attributeChanged(attribute); } - // Parse the information for convinience + // Parse the information for convenience if (attribute.id() == AttributeMeasuredValue) { bool valueOk = false; quint16 value = attribute.dataType().toUInt16(&valueOk); diff --git a/libnymea-zigbee/zcl/measurement/zigbeeclustertemperaturemeasurement.cpp b/libnymea-zigbee/zcl/measurement/zigbeeclustertemperaturemeasurement.cpp index 191ea80..0757bce 100644 --- a/libnymea-zigbee/zcl/measurement/zigbeeclustertemperaturemeasurement.cpp +++ b/libnymea-zigbee/zcl/measurement/zigbeeclustertemperaturemeasurement.cpp @@ -47,7 +47,7 @@ void ZigbeeClusterTemperatureMeasurement::setAttribute(const ZigbeeClusterAttrib emit attributeChanged(attribute); } - // Parse the information for convinience + // Parse the information for convenience if (attribute.id() == AttributeMeasuredValue) { bool valueOk = false; qint16 value = attribute.dataType().toInt16(&valueOk); diff --git a/libnymea-zigbee/zcl/ota/zigbeeclusterota.cpp b/libnymea-zigbee/zcl/ota/zigbeeclusterota.cpp index c171c00..9ac6592 100644 --- a/libnymea-zigbee/zcl/ota/zigbeeclusterota.cpp +++ b/libnymea-zigbee/zcl/ota/zigbeeclusterota.cpp @@ -65,7 +65,7 @@ void ZigbeeClusterOta::processDataIndication(ZigbeeClusterLibrary::Frame frame) { qCDebug(dcZigbeeCluster()) << "Processing cluster frame" << m_node << m_endpoint << this << frame; - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; switch (m_direction) { diff --git a/libnymea-zigbee/zcl/security/zigbeeclusteriaszone.cpp b/libnymea-zigbee/zcl/security/zigbeeclusteriaszone.cpp index ef79ca4..8914424 100644 --- a/libnymea-zigbee/zcl/security/zigbeeclusteriaszone.cpp +++ b/libnymea-zigbee/zcl/security/zigbeeclusteriaszone.cpp @@ -55,7 +55,7 @@ void ZigbeeClusterIasZone::processDataIndication(ZigbeeClusterLibrary::Frame fra { qCDebug(dcZigbeeCluster()) << "Processing cluster frame" << m_node << m_endpoint << this << frame; - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; switch (m_direction) { diff --git a/libnymea-zigbee/zcl/zigbeecluster.cpp b/libnymea-zigbee/zcl/zigbeecluster.cpp index 5c69615..411a519 100644 --- a/libnymea-zigbee/zcl/zigbeecluster.cpp +++ b/libnymea-zigbee/zcl/zigbeecluster.cpp @@ -356,7 +356,7 @@ void ZigbeeCluster::finishZclReply(ZigbeeClusterReply *zclReply) void ZigbeeCluster::processDataIndication(ZigbeeClusterLibrary::Frame frame) { - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; // Warn about the unhandled cluster indication, you can override this method in cluster implementations @@ -391,7 +391,7 @@ void ZigbeeCluster::processApsDataIndication(const QByteArray &asdu, const Zigbe } } - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; return; } @@ -411,7 +411,7 @@ void ZigbeeCluster::processApsDataIndication(const QByteArray &asdu, const Zigbe setAttribute(ZigbeeClusterAttribute(attributeId, dataType)); } - // Increase the tsn for continuouse id increasing on both sides + // Increase the tsn for continuous id increasing on both sides m_transactionSequenceNumber = frame.header.transactionSequenceNumber; return; } diff --git a/libnymea-zigbee/zigbeenetwork.h b/libnymea-zigbee/zigbeenetwork.h index 84d7a7c..2ce0c0d 100644 --- a/libnymea-zigbee/zigbeenetwork.h +++ b/libnymea-zigbee/zigbeenetwork.h @@ -136,7 +136,7 @@ private: qint32 m_serialBaudrate = 115200; ZigbeeAddress m_macAddress; - // Continuouse ASP sequence number for network requests + // Continuous ASP sequence number for network requests quint8 m_sequenceNumber = 0; // Network configurations diff --git a/libnymea-zigbee/zigbeenode.cpp b/libnymea-zigbee/zigbeenode.cpp index 7b00ea9..ef18a02 100644 --- a/libnymea-zigbee/zigbeenode.cpp +++ b/libnymea-zigbee/zigbeenode.cpp @@ -410,7 +410,7 @@ void ZigbeeNode::initBasicCluster() ZigbeeClusterBasic *basicCluster = endpoint->inputCluster(ZigbeeClusterLibrary::ClusterIdBasic); if (!basicCluster) { qCWarning(dcZigbeeNode()) << "Could not find basic cluster on" << this << "Set the node to initialized anyways."; - // Set the device initialized any ways since this ist just for convinience + // Set the device initialized any ways since this ist just for convenience setState(StateInitialized); return; } diff --git a/libnymea-zigbee/zigbeenode.h b/libnymea-zigbee/zigbeenode.h index cde7137..ff8b57c 100644 --- a/libnymea-zigbee/zigbeenode.h +++ b/libnymea-zigbee/zigbeenode.h @@ -115,7 +115,7 @@ private: void initEndpoints(); void initEndpoint(quint8 endpointId); - // For convinience and having base information about the first endpoint + // For convenience and having base information about the first endpoint void initBasicCluster(); void readManufacturerName(ZigbeeClusterBasic *basicCluster); void readModelIdentifier(ZigbeeClusterBasic *basicCluster); diff --git a/libnymea-zigbee/zigbeenodeendpoint.h b/libnymea-zigbee/zigbeenodeendpoint.h index b7e6510..f260162 100644 --- a/libnymea-zigbee/zigbeenodeendpoint.h +++ b/libnymea-zigbee/zigbeenodeendpoint.h @@ -98,7 +98,7 @@ public: ZigbeeCluster *getOutputCluster(ZigbeeClusterLibrary::ClusterId clusterId) const; bool hasOutputCluster(ZigbeeClusterLibrary::ClusterId clusterId) const; - // Convinience cast methods for getting a specific cluster object + // Convenience cast methods for getting a specific cluster object template inline T* inputCluster(ZigbeeClusterLibrary::ClusterId clusterId) {