clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I73acd9daf41b52bcc3f6af9a1c38c5f162ae76b2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/PwmSensor.cpp b/src/PwmSensor.cpp
index ad54dfe..c3c14a3 100644
--- a/src/PwmSensor.cpp
+++ b/src/PwmSensor.cpp
@@ -91,7 +91,7 @@
controlInterface->signal_property("Target");
return 1;
- },
+ },
[this](double& curVal) {
double currScaled = (curVal / 100.0) * pwmMax;
auto currInt = static_cast<uint32_t>(std::round(currScaled));
@@ -134,7 +134,7 @@
sensorInterface->signal_property("Value");
return 1;
- },
+ },
[this](uint64_t& curVal) {
auto getInt = getValue();
auto scaledValue = static_cast<double>(getInt) / pwmMax;