Chef disable AutoRelockTimer and fix compilation (#34848)
* Chef disable AutoRelockTimer and fix compilation
* Avoid printing out floating values
diff --git a/examples/chef/common/chef-concentration-measurement.cpp b/examples/chef/common/chef-concentration-measurement.cpp
index f0b8109..d168b79 100644
--- a/examples/chef/common/chef-concentration-measurement.cpp
+++ b/examples/chef/common/chef-concentration-measurement.cpp
@@ -91,7 +91,7 @@
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 MeasuredValue", endpoint, clusterId);
}
else
{
diff --git a/examples/chef/common/chef-rpc-actions-worker.cpp b/examples/chef/common/chef-rpc-actions-worker.cpp
index 98bba76..28413f0 100644
--- a/examples/chef/common/chef-rpc-actions-worker.cpp
+++ b/examples/chef/common/chef-rpc-actions-worker.cpp
@@ -147,7 +147,9 @@
ChefRpcActionsWorker::ChefRpcActionsWorker()
{
+#if CONFIG_ENABLE_PW_RPC
chip::rpc::SubscribeActions(ChefRpcActionsCallback);
+#endif
}
static ChefRpcActionsWorker instance;
diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
index 1369028..71f96db 100644
--- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
+++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter
@@ -2726,7 +2726,7 @@
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;
diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
index 339fe71..50e1a4b 100644
--- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
+++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.zap
@@ -3665,7 +3665,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
- "defaultValue": "5",
+ "defaultValue": "0",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,