diff --git a/tests/unit/logic/stubs/stub_motion.cpp b/tests/unit/logic/stubs/stub_motion.cpp index 8fae076..aa7b684 100644 --- a/tests/unit/logic/stubs/stub_motion.cpp +++ b/tests/unit/logic/stubs/stub_motion.cpp @@ -71,10 +71,14 @@ bool Motion::QueueEmpty(Axis axis) const { void Motion::AbortPlannedMoves(bool halt) { for (uint8_t i = 0; i < 3; ++i) { - axes[i].targetPos = axes[i].pos; // leave the axis where it was at the time of abort + AbortPlannedMoves((config::Axis)i, halt); // leave the axis where it was at the time of abort } } +void Motion::AbortPlannedMoves(config::Axis i, bool) { + axes[i].targetPos = axes[i].pos; // leave the axis where it was at the time of abort +} + void ReinitMotion() { // reset the simulation data to defaults axes[0] = AxisSim({ 0, 0, false, false, false }); // pulley