This commit is contained in:
Jonas Zeunert
2022-06-07 00:29:37 +02:00
parent 622c067a7a
commit ee758d770c
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,8 @@ class LampGroup:
self.currentLampPtr -= 1
def cycle(self):
self.currentLamp.deactivate()
if self.currentLamp:
self.currentLamp.deactivate()
self.currentLamp = next(self.lamp_cycle)
self.currentLamp.activate()