- now = time.time()
- if now - self._last_blink_time < FALLBACK_BLINK_SPEED:
- if self._red_state:
- self.actor().act(Actor.CMD_RED_OFF)
- self._red_state = False
- else:
- self.actor().act(Actor.CMD_RED_ON)
- self._red_state = True
- self._last_blink_time = now
+ if self._red_state:
+ self.actor().act(Actor.CMD_RED_OFF)
+ self._red_state = False
+ else:
+ self.actor().act(Actor.CMD_RED_ON)
+ self._red_state = True