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:
parent
9a31c068c4
commit
fcaf359e89
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue