From 5582b6c599b51d0dab89bcd4ac371d3ea5388840 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Fri, 22 Oct 2021 00:31:51 +0200 Subject: [PATCH] Print the manufacturer code in the node debug prints --- libnymea-zigbee/zigbeenode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libnymea-zigbee/zigbeenode.cpp b/libnymea-zigbee/zigbeenode.cpp index 9ccab01..aaeb00b 100644 --- a/libnymea-zigbee/zigbeenode.cpp +++ b/libnymea-zigbee/zigbeenode.cpp @@ -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();