Skip to content

Commit

Permalink
Fire time should be reinitialized to have successful next run
Browse files Browse the repository at this point in the history
  • Loading branch information
amorozenko committed Jul 24, 2019
1 parent 5dca229 commit ff57196
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blynktimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def start(t_id):
if timer is None:
raise TimerError('Timer id={} not found'.format(t_id))
Timer.timers[t_id].stopped = False
Timer.timers[t_id].fire_time = None
Timer.timers[t_id].fire_time_prev = None

@staticmethod
def is_stopped(t_id):
Expand Down

0 comments on commit ff57196

Please sign in to comment.