mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02:00
data_logger.py: add tmc/stallguard_dump endpoint
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
parent
317f8c94c8
commit
b724b3a348
@ -162,6 +162,10 @@ class DataLogger:
|
|||||||
lname = "%s:%s" % (st, aname)
|
lname = "%s:%s" % (st, aname)
|
||||||
qcmd = "%s/dump_%s" % (st, st)
|
qcmd = "%s/dump_%s" % (st, st)
|
||||||
self.send_subscribe(lname, qcmd, {"sensor": aname})
|
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):
|
def handle_dump(self, msg, raw_msg):
|
||||||
msg_id = msg["id"]
|
msg_id = msg["id"]
|
||||||
if "result" not in msg:
|
if "result" not in msg:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user