Compare commits

..

No commits in common. "bd342777a818e7f7fbbf68f13fbb6b4c4636d73c" and "a0f164d17672829e48f4163e2a5e310dd93b641e" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -121,10 +121,7 @@ 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)
self.write(msgs[m])
time.sleep(dt)
def send_light_msg(self):

View File

@ -123,7 +123,7 @@ class DoorControlSocket(util.Loggable):
self._bell._protocol.send_light_msg()
elif cmd == 'bell_perma_light':
self._bell._protocol.doing_light ^= True
send(f"Turning the light on permanently: {self._bell._protocol.doing_light}")
send("Turning the light on permanently: {self._bell._protocol.doing_light}")
elif cmd == 'bell_raw':
if (len(args) % 4) != 0:
send(f"Invalid number of bytes: {len(args)}")