Skip to content

Commit d5b7185

Browse files
Fix unit variable (project-chip#43165)
* Fix unit variable Signed-off-by: Doru-Cristian Gucea <doru-cristian.gucea@nxp.com> * Restyled by clang-format --------- Signed-off-by: Doru-Cristian Gucea <doru-cristian.gucea@nxp.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 90b16dd commit d5b7185

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/clusters/thread-network-diagnostics-server/ThreadNetworkDiagnosticsProvider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ CHIP_ERROR WriteThreadNetworkDiagnosticAttributeToTlv(AttributeId attributeId, a
103103

104104
case Attributes::RoutingRole::Id: {
105105
using ThreadNetworkDiagnostics::RoutingRoleEnum;
106-
RoutingRoleEnum routingRole;
107-
otDeviceRole otRole = otThreadGetDeviceRole(otInst);
106+
RoutingRoleEnum routingRole = RoutingRoleEnum::kUnspecified;
107+
otDeviceRole otRole = otThreadGetDeviceRole(otInst);
108108

109109
if (otRole == OT_DEVICE_ROLE_DISABLED)
110110
{

0 commit comments

Comments
 (0)