Skip to content

Commit

Permalink
merge issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed Jun 4, 2024
1 parent dabde72 commit 52f0775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/sensors/core/tasks/pressure_driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ class MMR920 {
if (echo_this_time) {
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++;
if (sensor_buffer_index < SENSOR_BUFFER_SIZE) {
(*p_buff).at(sensor_buffer_index) = response_pressure;
sensor_buffer_index++;
}
#else
can_client.send_can_message(
Expand Down

0 comments on commit 52f0775

Please sign in to comment.