Skip to content

Commit

Permalink
don't send errors when queue is full (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder authored May 7, 2024
1 parent e0ea2e1 commit ea6cf52
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/sensors/core/tasks/pressure_driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,6 @@ class MMR920 {
if (pressure_buffer_index < PRESSURE_SENSOR_BUFFER_SIZE) {
(*p_buff).at(pressure_buffer_index) = pressure;
pressure_buffer_index++;
} else {
can_client.send_can_message(
can::ids::NodeId::host,
can::messages::ErrorMessage{
.message_index = 0,
.severity = can::ids::ErrorSeverity::warning,
.error_code = can::ids::ErrorCode::stop_requested});
}
#else
can_client.send_can_message(
Expand Down

0 comments on commit ea6cf52

Please sign in to comment.