Skip to content

Commit

Permalink
Fixed WaitShort and WaitLong documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez01 committed Mar 21, 2018
1 parent 17920d3 commit f855f98
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions ChangeLog.txt
Expand Up @@ -305,3 +305,4 @@ Version History
response info.
- Fixed the U3 configIO method so Counters are set properly.
- Fixed the U6 configIO method so EnableUART are set properly.
- Fixed U3 and U6 WaitShort and WaitLong documentation.
10 changes: 6 additions & 4 deletions src/u3.py
Expand Up @@ -2028,7 +2028,8 @@ class WaitShort(FeedbackCommand):
'''
WaitShort Feedback command
specify the number of 128us time increments to wait
specify the number of 128 microseconds time increments to wait (0-255)
(U3C = 128 us, U3B = 64 us, U3A = 128 us)
>>> import u3
>>> d = u3.U3()
Expand All @@ -2048,9 +2049,10 @@ def __repr__(self):
class WaitLong(FeedbackCommand):
'''
WaitLong Feedback command
specify the number of 32ms time increments to wait
specify the number of 16384 microseconds time increments to wait (0-255)
(U3C = 16384 us, U3B = 16384 us, U3A = 32768 us)
>>> import u3
>>> d = u3.U3()
>>> d.debug = True
Expand Down
12 changes: 6 additions & 6 deletions src/u6.py
Expand Up @@ -1831,24 +1831,24 @@ class WaitShort(FeedbackCommand):
'''
WaitShort Feedback command
specify the number of 128us time increments to wait
specify the number of 64 microseconds time increments to wait (0-255)
>>> d.getFeedback( u6.WaitShort( Time ) )
[ None ]
'''
def __init__(self, Time):
self.time = Time % 256
self.cmdBytes = [ 5, Time % 256 ]

def __repr__(self):
return "<u6.WaitShort( Time = %s )>" % self.time

class WaitLong(FeedbackCommand):
'''
WaitLong Feedback command
specify the number of 32ms time increments to wait
specify the number of 16384 microseconds time increments to wait (0-255)
>>> d.getFeedback( u6.WaitLog( Time ) )
[ None ]
'''
Expand Down

0 comments on commit f855f98

Please sign in to comment.