From 16653e719ec6fd424a1a41785086ca9a57bd8d12 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 10 Oct 2022 21:09:21 +0200 Subject: [PATCH] tests... --- tests/unit/modules/stubs/stub_tmc2130.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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