aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-12-01 11:05:51 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-12-01 18:16:18 -0500
commitfcaf359e897cea792ac28fc9140316c76eb87c40 (patch)
tree60b37389ae4a27e542ce03c61876c2c8e28def50 /scripts
parent9a31c068c40c2c21f2201fa0f05029a5c11dab3c (diff)
downloadkutter-fcaf359e897cea792ac28fc9140316c76eb87c40.tar.gz
kutter-fcaf359e897cea792ac28fc9140316c76eb87c40.tar.xz
kutter-fcaf359e897cea792ac28fc9140316c76eb87c40.zip
stepstats: Update stepstats script with change in dir_pin meaning
Commit afecf7ce inverted the direction of the direction pin in queue_step commands - update the stepstats script to conform. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/stepstats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/stepstats.py b/scripts/stepstats.py
index 19baf8a3..1d77ce0e 100755
--- a/scripts/stepstats.py
+++ b/scripts/stepstats.py
@@ -32,8 +32,8 @@ def main():
so[2] += 1
so[{'0': 3, '1': 4}[so[1]]] += int(args['count'])
for oid, so in sorted([(int(i[0]), i[1]) for i in steppers.items()]):
- print "oid:%3d dir_cmds:%6d queue_cmds:%7d +:%8d -:%8d =:%8d" % (
- oid, so[0], so[2], so[3], so[4], so[3]-so[4])
+ print "oid:%3d dir_cmds:%6d queue_cmds:%7d (%8d -%8d = %8d)" % (
+ oid, so[0], so[2], so[4], so[3], so[4]-so[3])
if __name__ == '__main__':
main()