Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
def feed():
    ''' Start / resets the power management task '''
    global userResponseTime
    if not virtualtimers.update(userResponseTime, pm_task):
        virtualtimers.new(userResponseTime, pm_task, True)