From 48de29f9098b844d1024d4edd905d24599eebd59 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 16 Jul 2021 22:53:49 -0500 Subject: [PATCH] getMark method --- src/L6470.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/L6470.cpp b/src/L6470.cpp index 084fa19..d7fa3ae 100644 --- a/src/L6470.cpp +++ b/src/L6470.cpp @@ -325,6 +325,8 @@ void L64XX::setMark() { Xfer(uint8_t(value)); } +long L64XX::getMark() { return convert(GetParam(L6470_MARK)); } + // Sets the L6470_ABS_POS register to 0, effectively declaring the current // position to be "HOME". void L64XX::setAsHome() { Xfer(dSPIN_RESET_POS); }