Skip to content

Commit

Permalink
System was rendering white if alarms came in too fast.
Browse files Browse the repository at this point in the history
  • Loading branch information
IslayTzash committed Jan 23, 2017
1 parent 5afd963 commit 3a92e68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vi/dotlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ def setStatus(self, newStatus, statusTime = None):
for maxDiff, alarmColor, secondLineColor in self.ALARM_COLORS:
if delta < maxDiff:
self.setBackgroundColor(alarmColor)
break
elif newStatus == states.CLEAR:
self.lastAlarmTime = statusTime
self.setBackgroundColor(self.CLEAR_COLOR)
Expand Down

0 comments on commit 3a92e68

Please sign in to comment.