Skip to content

Commit

Permalink
fix(flex-stacker): clear ack message cache when a stall is detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Nov 3, 2024
1 parent 49beb3b commit 98d8fc0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ class HostCommsTask {
std::sized_sentinel_for<InputLimit, InputIt>
auto visit_message(const messages::ErrorMessage& msg, InputIt tx_into,
InputLimit tx_limit) -> InputIt {
// stall detected, clear the message cache.
if (msg.code == errors::ErrorCode::MOTOR_STALL_DETECTED) {
ack_only_cache.clear();
}
return errors::write_into_async(tx_into, tx_limit, msg.code);
}

Expand Down

0 comments on commit 98d8fc0

Please sign in to comment.