Skip to content

Commit

Permalink
Chef disable AutoRelockTimer and fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Aug 7, 2024
1 parent bbef51a commit e150516
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/chef/common/chef-concentration-measurement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Protocols::InteractionModel::Status chefConcentrationMeasurementWriteCallback(
CHIP_ERROR err = clusterInstance->SetMeasuredValue(MakeNullable(newValue));
if (CHIP_NO_ERROR == err)
{
ChipLogDetail(DeviceLayer, "Updated EP:%d, Cluster: 0x%04x to MeasuredValue: %f", endpoint, clusterId, newValue);
ChipLogDetail(DeviceLayer, "Updated EP:%d, Cluster: 0x%04x to MeasuredValue: %g", endpoint, clusterId, newValue);
}
else
{
Expand Down
2 changes: 2 additions & 0 deletions examples/chef/common/chef-rpc-actions-worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ void ChefRpcActionsWorker::RegisterRpcActionsDelegate(ClusterId clusterId, Actio

ChefRpcActionsWorker::ChefRpcActionsWorker()
{
#if CONFIG_ENABLE_PW_RPC
chip::rpc::SubscribeActions(ChefRpcActionsCallback);
#endif
}

static ChefRpcActionsWorker instance;
Expand Down
2 changes: 1 addition & 1 deletion examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ endpoint 1 {
ram attribute credentialRulesSupport default = 1;
ram attribute numberOfCredentialsSupportedPerUser default = 5;
ram attribute language default = "en";
ram attribute autoRelockTime default = 5;
ram attribute autoRelockTime default = 0;
ram attribute soundVolume default = 0;
ram attribute operatingMode default = 0;
ram attribute supportedOperatingModes default = 0xFFFF;
Expand Down
2 changes: 1 addition & 1 deletion examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3665,7 +3665,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "5",
"defaultValue": "0",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down

0 comments on commit e150516

Please sign in to comment.