Empty the entire block_index queue when planned moves are aborted
parent
c2601d9a34
commit
7bbee87a08
|
|
@ -160,10 +160,12 @@ void PulseGen::AbortPlannedMoves(bool halt) {
|
|||
if (current_block) {
|
||||
last_rate = acc_step_rate;
|
||||
current_block = nullptr;
|
||||
while (!block_index.empty()) // drop all remaining blocks
|
||||
block_index.pop();
|
||||
}
|
||||
|
||||
// drop all remaining blocks
|
||||
while (!block_index.empty())
|
||||
block_index.pop();
|
||||
|
||||
// truncate the last rate if halting
|
||||
if (halt)
|
||||
last_rate = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue