Allow alternating raw data

This commit is contained in:
Lynn Ochs 2022-11-14 19:36:52 +01:00
parent e856fffaf5
commit bd342777a8

View File

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