Clang-tidy-14 fixes
Do as the robot commands. All changes made automatically by tidy.
Tested: (Thanks Zhikui)
Downloaded and run on system. Sensors scan normally.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I752f37c9e7a95aa3be8e6980ba6e4b2b48b3395a
diff --git a/src/ADCSensorMain.cpp b/src/ADCSensorMain.cpp
index 8e973e7..ef9ef44 100644
--- a/src/ADCSensorMain.cpp
+++ b/src/ADCSensorMain.cpp
@@ -236,7 +236,7 @@
scaleFactor = std::visit(VariantToFloatVisitor(),
findScaleFactor->second);
// scaleFactor is used in division
- if (scaleFactor == 0.0f)
+ if (scaleFactor == 0.0F)
{
scaleFactor = 1.0;
}
@@ -248,7 +248,7 @@
{
pollRate =
std::visit(VariantToFloatVisitor(), findPollRate->second);
- if (pollRate <= 0.0f)
+ if (pollRate <= 0.0F)
{
pollRate = pollRateDefault; // polling time too short
}