Skip to content

Commit 3dc6938

Browse files
authored
fix processing of DPS register error state (#287)
1 parent 297ead7 commit 3dc6938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/azure_iot_nx/azure_iot_nx_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,8 +602,8 @@ UINT azure_iot_nx_client_dps_create(AZURE_IOT_NX_CONTEXT* context, CHAR* dps_id_
602602
{
603603
while (true)
604604
{
605-
if ((status = nx_azure_iot_provisioning_client_register(&context->dps_client, DPS_REGISTER_TIMEOUT_TICKS) ==
606-
NX_AZURE_IOT_PENDING))
605+
status = nx_azure_iot_provisioning_client_register(&context->dps_client, DPS_REGISTER_TIMEOUT_TICKS);
606+
if (status == NX_AZURE_IOT_PENDING)
607607
{
608608
printf("\tPending DPS connection, retrying\r\n");
609609
continue;

0 commit comments

Comments
 (0)