From 2e32204d17af7b20106b9dafaba672112394f2e1 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sun, 30 Jan 2022 12:04:48 +0100 Subject: [PATCH] motion: Improve legibility of motion::SetPosition --- src/modules/motion.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/motion.h b/src/modules/motion.h index ff78c7c..6163588 100644 --- a/src/modules/motion.h +++ b/src/modules/motion.h @@ -176,13 +176,13 @@ public: /// Set the position of an axis. Should only be called when the queue is empty. /// @param axis axis affected /// @param x position to set - void SetPosition(Axis axis, pos_t x) #if !defined(UNITTEST) || defined(UNITTEST_MOTION) - { + void SetPosition(Axis axis, pos_t x) { axisData[axis].ctrl.SetPosition(x); } #else - ; + // Force STUB for testing + void SetPosition(Axis axis, pos_t x); #endif /// Get current acceleration for the selected axis