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>
This commit is contained in:
Kevin O'Connor 2016-12-01 11:05:51 -05:00
parent 9a31c068c4
commit fcaf359e89
1 changed files with 2 additions and 2 deletions

View File

@ -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()