Skip to content

Commit 514b9eb

Browse files
authored
Chef disable AutoRelockTimer and fix compilation (project-chip#34848)
* Chef disable AutoRelockTimer and fix compilation * Avoid printing out floating values
1 parent bb8602e commit 514b9eb

4 files changed

+5
-3
lines changed

examples/chef/common/chef-concentration-measurement.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Protocols::InteractionModel::Status chefConcentrationMeasurementWriteCallback(
9191
CHIP_ERROR err = clusterInstance->SetMeasuredValue(MakeNullable(newValue));
9292
if (CHIP_NO_ERROR == err)
9393
{
94-
ChipLogDetail(DeviceLayer, "Updated EP:%d, Cluster: 0x%04x to MeasuredValue: %f", endpoint, clusterId, newValue);
94+
ChipLogDetail(DeviceLayer, "Updated EP:%d, Cluster: 0x%04x MeasuredValue", endpoint, clusterId);
9595
}
9696
else
9797
{

examples/chef/common/chef-rpc-actions-worker.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ void ChefRpcActionsWorker::RegisterRpcActionsDelegate(ClusterId clusterId, Actio
147147

148148
ChefRpcActionsWorker::ChefRpcActionsWorker()
149149
{
150+
#if CONFIG_ENABLE_PW_RPC
150151
chip::rpc::SubscribeActions(ChefRpcActionsCallback);
152+
#endif
151153
}
152154

153155
static ChefRpcActionsWorker instance;

examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter

+1-1
Original file line numberDiff line numberDiff line change
@@ -2726,7 +2726,7 @@ endpoint 1 {
27262726
ram attribute credentialRulesSupport default = 1;
27272727
ram attribute numberOfCredentialsSupportedPerUser default = 5;
27282728
ram attribute language default = "en";
2729-
ram attribute autoRelockTime default = 5;
2729+
ram attribute autoRelockTime default = 0;
27302730
ram attribute soundVolume default = 0;
27312731
ram attribute operatingMode default = 0;
27322732
ram attribute supportedOperatingModes default = 0xFFFF;

examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap

+1-1
Original file line numberDiff line numberDiff line change
@@ -3665,7 +3665,7 @@
36653665
"storageOption": "RAM",
36663666
"singleton": 0,
36673667
"bounded": 0,
3668-
"defaultValue": "5",
3668+
"defaultValue": "0",
36693669
"reportable": 1,
36703670
"minInterval": 1,
36713671
"maxInterval": 65534,

0 commit comments

Comments
 (0)