Allow alternating raw data
This commit is contained in:
parent
e856fffaf5
commit
bd342777a8
|
@ -121,7 +121,10 @@ class Reader(util.Loggable):
|
|||
def alternate_msgs(self, names, times = 3, *, dt = 0.04):
|
||||
for _ in range(times):
|
||||
for m in names:
|
||||
if type(m) == str:
|
||||
self.write(msgs[m])
|
||||
else:
|
||||
self.write(m)
|
||||
time.sleep(dt)
|
||||
|
||||
def send_light_msg(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user