Skip to content

Commit

Permalink
Pass the status report's status code up the stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
harimau-qirex committed Sep 11, 2024
1 parent e2726ae commit 1973776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/python/chip/bdx/bdx-transfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint16_t>(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);
Expand Down

0 comments on commit 1973776

Please sign in to comment.