Skip to content

Commit f780e5d

Browse files
praveenCYandy31415
andauthored
[Infineon] KeyValue Storage write fix for Door Lock credentials (#22777) (#22979)
* [Infineon] KeyValue Storage write fix for Door Lock credentials * [Infineon] Add Infineon build badge to README.md Co-authored-by: Andrei Litvin <[email protected]> Co-authored-by: Andrei Litvin <[email protected]>
1 parent 6ff45cf commit f780e5d

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[![Examples - nRF Connect SDK](https://github.com/project-chip/connectedhomeip/workflows/Build%20example%20-%20nRF%20Connect%20SDK/badge.svg)](https://github.com/project-chip/connectedhomeip/actions/workflows/examples-nrfconnect.yaml)
1111
[![Examples - QPG](https://github.com/project-chip/connectedhomeip/workflows/Build%20example%20-%20QPG/badge.svg)](https://github.com/project-chip/connectedhomeip/actions/workflows/examples-qpg.yaml)
1212
[![Examples - TI CC26X2X7](https://github.com/project-chip/connectedhomeip/workflows/Build%20example%20-%20TI%20CC26X2X7/badge.svg)](https://github.com/project-chip/connectedhomeip/actions/workflows/examples-cc13x2x7_26x2x7.yaml)
13+
[![Build example - Infineon](https://github.com/project-chip/connectedhomeip/actions/workflows/examples-infineon.yaml/badge.svg)](https://github.com/project-chip/connectedhomeip/actions/workflows/examples-infineon.yaml)
1314

1415
[![Android](https://github.com/project-chip/connectedhomeip/workflows/Android/badge.svg)](https://github.com/project-chip/connectedhomeip/actions/workflows/android.yaml)
1516

examples/lock-app/infineon/psoc6/src/AppTask.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ void AppTask::AppTaskMain(void * pvParameter)
331331

332332
P6_LOG("App Task started");
333333

334+
// Users and credentials should be checked once from flash on boot
335+
LockMgr().ReadConfigValues();
336+
334337
while (true)
335338
{
336339
BaseType_t eventReceived = xQueueReceive(sAppEventQueue, &event, portMAX_DELAY);

src/platform/Infineon/PSOC6/P6Config.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ CHIP_ERROR P6Config::WriteConfigValueBin(Key key, const uint8_t * data, size_t d
198198
{
199199
char key_str[MTB_KVSTORE_MAX_KEY_SIZE] = { 0 };
200200
key.to_str(key_str, MTB_KVSTORE_MAX_KEY_SIZE);
201-
return PersistedStorage::KeyValueStoreMgr().Put(key_str, static_cast<void *>(&data), dataLen);
201+
return PersistedStorage::KeyValueStoreMgr().Put(key_str, data, dataLen);
202202
}
203203

204204
CHIP_ERROR P6Config::ClearConfigValue(Key key)
Submodule btstack updated 115 files

0 commit comments

Comments
 (0)