Skip to content

Commit

Permalink
Reset device on report failure
Browse files Browse the repository at this point in the history
This is only a problem if we fail after setting the noc because
we don't send a new arm failsafe, but we do send a report for the
cleanup stage.
  • Loading branch information
cecille committed Apr 4, 2022
1 parent 7dce782 commit 4e27e38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,7 @@ void DeviceCommissioner::CommissioningStageComplete(CHIP_ERROR err, Commissionin
completionStatus.err = status;
completionStatus.failedStage = MakeOptional(report.stageCompleted);
mCommissioningStage = CommissioningStage::kCleanup;
mDeviceBeingCommissioned = proxy;
CleanupCommissioning(proxy, nodeId, completionStatus);
}
}
Expand Down

0 comments on commit 4e27e38

Please sign in to comment.