diff options
author | Timofey Titovets <nefelim4ag@gmail.com> | 2024-05-21 22:33:00 +0200 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2025-07-12 16:17:22 -0400 |
commit | b724b3a348039b8861f7f56fa9739f1d789bf06d (patch) | |
tree | 671afb7419718c7c1e17b188f0cb50ea418f1bdb | |
parent | 317f8c94c8bf83af4551fe57f1f8d7395a14773d (diff) | |
download | kutter-b724b3a348039b8861f7f56fa9739f1d789bf06d.tar.gz kutter-b724b3a348039b8861f7f56fa9739f1d789bf06d.tar.xz kutter-b724b3a348039b8861f7f56fa9739f1d789bf06d.zip |
data_logger.py: add tmc/stallguard_dump endpoint
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
-rwxr-xr-x | scripts/motan/data_logger.py | 4 |
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: |