From 1973776c38c555cd4416b7e707a3f1aae1ca5171 Mon Sep 17 00:00:00 2001 From: Andy Salisbury Date: Wed, 21 Aug 2024 16:46:08 -0400 Subject: [PATCH] Pass the status report's status code up the stack. --- src/controller/python/chip/bdx/bdx-transfer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/python/chip/bdx/bdx-transfer.cpp b/src/controller/python/chip/bdx/bdx-transfer.cpp index c8e3e4b2ce63e3..ba9e99debbd5cf 100644 --- a/src/controller/python/chip/bdx/bdx-transfer.cpp +++ b/src/controller/python/chip/bdx/bdx-transfer.cpp @@ -80,8 +80,8 @@ void BdxTransfer::HandleTransferSessionOutput(TransferSession::OutputEvent & eve mDelegate->InitMessageReceived(this, event.transferInitData); break; case TransferSession::OutputEventType::kStatusReceived: - ChipLogError(BDX, "Received StatusReport %x", static_cast(event.statusData.statusCode)); - EndSession(CHIP_ERROR_INTERNAL); + ChipLogError(BDX, "Received StatusReport %x", ::chip::to_underlying(event.statusData.statusCode)); + EndSession(ChipError(ChipError::SdkPart::kIMClusterStatus, ::chip::to_underlying(event.statusData.statusCode))); break; case TransferSession::OutputEventType::kInternalError: EndSession(CHIP_ERROR_INTERNAL);