From fcaf359e897cea792ac28fc9140316c76eb87c40 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 1 Dec 2016 11:05:51 -0500 Subject: [PATCH] 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 --- scripts/stepstats.py | 4 ++-- 1 file 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()