Skip to content

Commit

Permalink
send message to both queues
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Apr 12, 2024
1 parent d1786f0 commit 9e189d1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,11 @@ class MotorInterruptHandler {
#ifdef USE_PRESSURE_MOVE
void send_to_pressure_sensor_queue(
can::messages::BindSensorOutputRequest& m) {
// send to both queues, they will handle their own gating based on sensor id
std::ignore = sensor_tasks::get_queues()
.pressure_sensor_queue_rear->try_write_isr(m);
std::ignore = sensor_tasks::get_queues()
.pressure_sensor_queue_front->try_write_isr(m);
// if (!success) {this->cancel_and_clear_moves();}
}
#endif
Expand Down

0 comments on commit 9e189d1

Please sign in to comment.