diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-08-16 22:23:18 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-08-17 00:10:44 -0400 |
commit | e3cf8fc819c808a8e300d0b11ed74aefc00f5fb5 (patch) | |
tree | 40f8ab98d84c37d7597c42580df033f382d60659 /klippy/extras/motion_report.py | |
parent | 7fddc5a8faf0b256733ac260acdd118ff5d0242d (diff) | |
download | kutter-e3cf8fc819c808a8e300d0b11ed74aefc00f5fb5.tar.gz kutter-e3cf8fc819c808a8e300d0b11ed74aefc00f5fb5.tar.xz kutter-e3cf8fc819c808a8e300d0b11ed74aefc00f5fb5.zip |
motion_report: Fix typo causing incomplete queries
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/motion_report.py')
-rw-r--r-- | klippy/extras/motion_report.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/klippy/extras/motion_report.py b/klippy/extras/motion_report.py index 7b615251..ce7486e4 100644 --- a/klippy/extras/motion_report.py +++ b/klippy/extras/motion_report.py @@ -23,8 +23,7 @@ class DumpStepper: break end_clock = data[count-1].first_clock res.reverse() - return ([data[i] for i in range(count-1, -1, -1) - for data, count in res], res) + return ([d[i] for d, cnt in res for i in range(cnt-1, -1, -1)], res) def log_steps(self, data): if not data: return @@ -60,8 +59,7 @@ class DumpTrapQ: break end_time = data[count-1].print_time res.reverse() - return ([data[i] for i in range(count-1, -1, -1) - for data, count in res], res) + return ([d[i] for d, cnt in res for i in range(cnt-1, -1, -1)], res) def log_trapq(self, data): if not data: return |