def feed(): ''' Start / resets the power management task ''' global timeout, enabled if timeout < 1: #Disabled by setting return if not virtualtimers.update(timeout, pm_task): enabled = True virtualtimers.new(timeout, pm_task, True)
def feed(start=True): ''' Resets the timer ''' global timeout, enabled if start: enabled = True if enabled: if timeout < 1: #Disabled by setting return if not virtualtimers.update(timeout, pm_task): virtualtimers.new(timeout, pm_task, True)
def feed(): ''' Start / resets the power management task ''' global userResponseTime if not virtualtimers.update(userResponseTime, pm_task): virtualtimers.new(userResponseTime, pm_task, True)