From 9882889aab81425da48cdcd2bd816eb7500c52bf Mon Sep 17 00:00:00 2001 From: Jerry-ESP <107675966+Jerry-ESP@users.noreply.github.com> Date: Wed, 30 Nov 2022 14:46:21 +0800 Subject: [PATCH] fix a issue about GetPartitionLabelByNamespace (#23738) --- src/platform/ESP32/ESP32Config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/ESP32/ESP32Config.cpp b/src/platform/ESP32/ESP32Config.cpp index c700b35bb87012..6d91c0d2566ed0 100644 --- a/src/platform/ESP32/ESP32Config.cpp +++ b/src/platform/ESP32/ESP32Config.cpp @@ -105,7 +105,7 @@ const char * ESP32Config::GetPartitionLabelByNamespace(const char * ns) { return CHIP_DEVICE_CONFIG_CHIP_CONFIG_NAMESPACE_PARTITION; } - else if (strcmp(ns, kConfigNamespace_ChipCounters)) + else if (strcmp(ns, kConfigNamespace_ChipCounters) == 0) { return CHIP_DEVICE_CONFIG_CHIP_COUNTERS_NAMESPACE_PARTITION; }