From 2697dd9ba4b4883297cfd2d9aada9dd606974899 Mon Sep 17 00:00:00 2001 From: esp Date: Wed, 11 Dec 2024 18:23:58 +0530 Subject: [PATCH] diagnostic-logs-cluster: remove default parameter from Reset() method --- .../diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp | 2 +- .../clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp b/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp index bbdd826d5f3343..83c43e3919215e 100644 --- a/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp +++ b/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.cpp @@ -213,7 +213,7 @@ void BDXDiagnosticLogsProvider::OnAckEOFReceived() { ChipLogProgress(BDX, "Diagnostic logs transfer: Success"); - Reset(); + Reset(CHIP_NO_ERROR); } void BDXDiagnosticLogsProvider::OnStatusReceived(TransferSession::OutputEvent & event) diff --git a/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.h b/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.h index ddf355b70c90ed..a80b04a3d61c5c 100644 --- a/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.h +++ b/src/app/clusters/diagnostic-logs-server/BDXDiagnosticLogsProvider.h @@ -79,7 +79,7 @@ class BDXDiagnosticLogsProvider : public bdx::Initiator * @param[in] error A CHIP_ERROR value indicating the reason for resetting the state. * It is permissible to pass CHIP_NO_ERROR to indicate normal termination. */ - void Reset(CHIP_ERROR error = CHIP_NO_ERROR); + void Reset(CHIP_ERROR error); Messaging::ExchangeContext * mBDXTransferExchangeCtx; DiagnosticLogsProviderDelegate * mDelegate;