From 110ef2899fcaf741ed9a08d9f8e3391030c5e28c Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 12 Jul 2023 11:10:29 +0000 Subject: [PATCH] Restyled by clang-format --- src/app/clusters/fan-control-server/fan-control-server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/fan-control-server/fan-control-server.cpp b/src/app/clusters/fan-control-server/fan-control-server.cpp index 327dafa532038b..d286207c3e8686 100644 --- a/src/app/clusters/fan-control-server/fan-control-server.cpp +++ b/src/app/clusters/fan-control-server/fan-control-server.cpp @@ -346,7 +346,7 @@ void MatterFanControlClusterServerAttributeChangedCallback(const app::ConcreteAt VerifyOrReturn(EMBER_ZCL_STATUS_SUCCESS == status, ChipLogError(Zcl, "Failed to get SpeedSetting with error: 0x%02x", status)); - float percent = percentSetting.Value(); + float percent = percentSetting.Value(); // Minus insignificant number 0.00000001 before ceil() to avoid floating point precision error uint8_t speedSetting = static_cast(ceil(speedMax * (percent * 0.01) - 0.00000001));