Skip to content

Commit

Permalink
remove the old echo, will be going away anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Sep 27, 2024
1 parent 4885fab commit 02d904c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions include/sensors/core/tasks/pressure_driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,17 +455,6 @@ class MMR920 {
response_pressure -= current_moving_pressure_baseline_pa;
}
sensor_buffer_log(response_pressure);
if (!enable_auto_baseline) {
// This preserves the old way of echoing continuous polls
can_client.send_can_message(
can::ids::NodeId::host,
can::messages::ReadFromSensorResponse{
.message_index = 0,
.sensor = can::ids::SensorType::pressure,
.sensor_id = sensor_id,
.sensor_data =
mmr920::reading_to_fixed_point(response_pressure)});
}

if (enable_auto_baseline &&
sensor_buffer_index == AUTO_BASELINE_END &&
Expand Down

0 comments on commit 02d904c

Please sign in to comment.