Skip to content

Commit

Permalink
[Infineon] KeyValue Storage write fix for Door Lock credentials (#22777)
Browse files Browse the repository at this point in the history
* [Infineon] KeyValue Storage write fix for Door Lock credentials

* [Infineon] Add Infineon build badge to README.md

Co-authored-by: Andrei Litvin <andy314@gmail.com>
  • Loading branch information
praveenCY and andy31415 authored Sep 22, 2022
1 parent 388c27c commit 7189344
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
[![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)
[![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)
[![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)
[![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)

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

Expand Down
3 changes: 3 additions & 0 deletions examples/lock-app/infineon/psoc6/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ void AppTask::AppTaskMain(void * pvParameter)

P6_LOG("App Task started");

// Users and credentials should be checked once from flash on boot
LockMgr().ReadConfigValues();

while (true)
{
BaseType_t eventReceived = xQueueReceive(sAppEventQueue, &event, portMAX_DELAY);
Expand Down
2 changes: 1 addition & 1 deletion src/platform/Infineon/PSOC6/P6Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ CHIP_ERROR P6Config::WriteConfigValueBin(Key key, const uint8_t * data, size_t d
{
char key_str[MTB_KVSTORE_MAX_KEY_SIZE] = { 0 };
key.to_str(key_str, MTB_KVSTORE_MAX_KEY_SIZE);
return PersistedStorage::KeyValueStoreMgr().Put(key_str, static_cast<void *>(&data), dataLen);
return PersistedStorage::KeyValueStoreMgr().Put(key_str, data, dataLen);
}

CHIP_ERROR P6Config::ClearConfigValue(Key key)
Expand Down
2 changes: 1 addition & 1 deletion third_party/infineon/psoc6/psoc6_sdk/libs/btstack
Submodule btstack updated 115 files
2 changes: 1 addition & 1 deletion third_party/infineon/psoc6/psoc6_sdk/libs/wifi-host-driver
Submodule wifi-host-driver updated 122 files

0 comments on commit 7189344

Please sign in to comment.