Skip to content

Commit dea361a

Browse files
committed
[Python] Reset chip error in test commissioner
Make sure to reset the chip error in test commissioner on reset. This avoid spurious errors. The Python side reads the error as soon as mTestCommissionerUsed is set, which happens unconditionally. Hence clearing the error is necessary.
1 parent 1cbb109 commit dea361a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/controller/python/OpCredsBinding.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ class TestCommissioner : public chip::Controller::AutoCommissioner
259259
mPrematureCompleteAfter = chip::Controller::CommissioningStage::kError;
260260
mReadCommissioningInfo = chip::Controller::ReadCommissioningInfo();
261261
mNeedsDST = false;
262+
mCompletionError = CHIP_NO_ERROR;
262263
}
263264
bool GetTestCommissionerUsed() { return mTestCommissionerUsed; }
264265
void OnCommissioningSuccess(chip::PeerId peerId) { mReceivedCommissioningSuccess = true; }

0 commit comments

Comments
 (0)