aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/motan/data_logger.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/motan/data_logger.py b/scripts/motan/data_logger.py
index e00c9956..fd4de7a5 100755
--- a/scripts/motan/data_logger.py
+++ b/scripts/motan/data_logger.py
@@ -162,6 +162,10 @@ class DataLogger:
lname = "%s:%s" % (st, aname)
qcmd = "%s/dump_%s" % (st, st)
self.send_subscribe(lname, qcmd, {"sensor": aname})
+ if cfgname.startswith("tmc"):
+ driver = ' '.join(cfgname.split()[1:])
+ self.send_subscribe("stallguard:" + driver,
+ "tmc/stallguard_dump", {"name": driver})
def handle_dump(self, msg, raw_msg):
msg_id = msg["id"]
if "result" not in msg: