Skip to content

Commit 839a11d

Browse files
authored
ESP32: Fix dependency of esp_secure_cert_mgr (#36985)
* ESP32: Fix dependency of esp_secure_cert_mgr * fix conversion error in EndpointQueueFilter
1 parent 286f235 commit 839a11d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/esp32/components/chip/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@ if (CONFIG_OPENTHREAD_BORDER_ROUTER)
432432
list(APPEND matter_requires espressif__esp_rcp_update)
433433
endif()
434434

435+
if (CONFIG_SEC_CERT_DAC_PROVIDER)
436+
list(APPEND matter_requires espressif__esp_secure_cert_mgr)
437+
endif()
438+
435439
add_prebuilt_library(matterlib "${CMAKE_CURRENT_BINARY_DIR}/lib/libCHIP.a"
436440
REQUIRES ${matter_requires})
437441

src/platform/ESP32/ESP32EndpointQueueFilter.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ class ESP32EndpointQueueFilter : public EndpointQueueFilter
8484
{
8585
for (size_t i = 0; i < size; ++i)
8686
{
87-
uint8_t byte1 = (buf1[i] >= 'A' && buf1[i] <= 'Z') ? buf1[i] - 'A' + 'a' : buf1[i];
88-
uint8_t byte2 = (buf2[i] >= 'A' && buf2[i] <= 'Z') ? buf2[i] - 'A' + 'a' : buf2[i];
87+
uint8_t byte1 = static_cast<uint8_t>((buf1[i] >= 'A' && buf1[i] <= 'Z') ? (buf1[i] - 'A' + 'a') : buf1[i]);
88+
uint8_t byte2 = static_cast<uint8_t>((buf2[i] >= 'A' && buf2[i] <= 'Z') ? (buf2[i] - 'A' + 'a') : buf2[i]);
8989
if (byte1 != byte2)
9090
{
9191
return false;

0 commit comments

Comments
 (0)