Print the manufacturer code in the node debug prints

pull/24/head
Michael Zanetti 2021-10-22 00:31:51 +02:00
parent c5d9b119af
commit 5582b6c599
1 changed files with 3 additions and 1 deletions

View File

@ -812,7 +812,9 @@ QDebug operator<<(QDebug debug, ZigbeeNode *node)
debug.nospace().noquote() << "ZigbeeNode(" << ZigbeeUtils::convertUint16ToHexString(node->shortAddress());
debug.nospace().noquote() << ", " << node->extendedAddress().toString();
if (!node->manufacturerName().isEmpty())
debug.nospace().noquote() << ", " << node->manufacturerName();
debug.nospace().noquote() << ", " << node->manufacturerName() << " (" << ZigbeeUtils::convertUint16ToHexString(node->nodeDescriptor().manufacturerCode) << ")";
else
debug.nospace().noquote() << ", " << ZigbeeUtils::convertUint16ToHexString(node->nodeDescriptor().manufacturerCode);
if (!node->modelName().isEmpty())
debug.nospace().noquote() << ", " << node->modelName();