From dabde721e96463ef02fc2cbaf047309921e66372 Mon Sep 17 00:00:00 2001 From: pmoegenburg Date: Tue, 4 Jun 2024 16:33:24 -0400 Subject: [PATCH] build issue fix --- include/sensors/core/tasks/pressure_driver.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sensors/core/tasks/pressure_driver.hpp b/include/sensors/core/tasks/pressure_driver.hpp index 2235e2146..cea4cc8d2 100644 --- a/include/sensors/core/tasks/pressure_driver.hpp +++ b/include/sensors/core/tasks/pressure_driver.hpp @@ -359,8 +359,8 @@ class MMR920 { } if (echo_this_time) { -#ifdef USE_SENSOR_MOVE auto response_pressure = pressure - current_pressure_baseline_pa; +#ifdef USE_SENSOR_MOVE if (pressure_buffer_index < SENSOR_BUFFER_SIZE) { (*p_buff).at(pressure_buffer_index) = response_pressure; pressure_buffer_index++;