From fdd6637dffede4fa2f6a33acf987197e0820476b Mon Sep 17 00:00:00 2001 From: Ryan howard Date: Tue, 25 Jun 2024 16:13:11 -0400 Subject: [PATCH] format lint --- include/sensors/core/tasks/pressure_driver.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sensors/core/tasks/pressure_driver.hpp b/include/sensors/core/tasks/pressure_driver.hpp index c3c052d55..be5994c25 100644 --- a/include/sensors/core/tasks/pressure_driver.hpp +++ b/include/sensors/core/tasks/pressure_driver.hpp @@ -305,7 +305,7 @@ class MMR920 { void send_accumulated_sensor_data(uint32_t message_index) { auto start = 0; auto count = sensor_buffer_index; - if (crossed_buffer_index == true) { + if (crossed_buffer_index) { start = sensor_buffer_index; count = SENSOR_BUFFER_SIZE; } @@ -420,7 +420,7 @@ class MMR920 { std::accumulate( sensor_buffer->begin() + AUTO_BASELINE_START, sensor_buffer->begin() + AUTO_BASELINE_END, 0) / - (AUTO_BASELINE_END - AUTO_BASELINE_START); + float(AUTO_BASELINE_END - AUTO_BASELINE_START); for (auto i = sensor_buffer_index - AUTO_BASELINE_END; i < sensor_buffer_index; i++) { // apply the moving baseline to older samples to so that