diff --git a/tests/unit/modules/stubs/stub_tmc2130.cpp b/tests/unit/modules/stubs/stub_tmc2130.cpp index 16eddbc..1239b68 100644 --- a/tests/unit/modules/stubs/stub_tmc2130.cpp +++ b/tests/unit/modules/stubs/stub_tmc2130.cpp @@ -21,5 +21,9 @@ void TMC2130::SetEnabled(const MotorParams ¶ms, bool enabled) { void TMC2130::Isr(const MotorParams ¶ms) { } +bool TMC2130::CheckForErrors(const MotorParams ¶ms) { + return !errorFlags.Good(); +} + } // namespace tmc2130 } // namespace hal