From 40903844c87941c591c9541b1d20c7a911cd1098 Mon Sep 17 00:00:00 2001 From: mahesh Date: Tue, 19 Nov 2024 17:37:19 +0530 Subject: [PATCH] temperature_measurement_app: Review changes --- .../esp32/main/diagnostic-logs-provider-delegate-impl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp b/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp index d46843a41f6ebd..2130072c5958ce 100644 --- a/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp +++ b/examples/temperature-measurement-app/esp32/main/diagnostic-logs-provider-delegate-impl.cpp @@ -29,6 +29,10 @@ using namespace chip::app::Clusters::DiagnosticLogs; LogProvider LogProvider::sInstance; LogProvider::CrashLogContext LogProvider::sCrashLogContext; +#if CONFIG_ENABLE_ESP_DIAGNOSTICS_TRACE +static uint32_t sIntentSize = CONFIG_END_USER_BUFFER_SIZE; +#endif + namespace { bool IsValidIntent(IntentEnum intent) { @@ -130,6 +134,7 @@ CHIP_ERROR LogProvider::PrepareLogContextForIntent(LogContext * context, IntentE ChipLogError(DeviceLayer, "Failed to retrieve data: %s", chip::ErrorStr(err)); return err; } + sIntentSize = endUserSupportSpan.size(); // Now, assign the span to the EndUserSupport object or whatever is required context->EndUserSupport.span = endUserSupportSpan; #else