From 859a411f5baa30255edefce58904542cbac5dd14 Mon Sep 17 00:00:00 2001 From: realraum Date: Wed, 28 Jul 2010 01:21:33 +0000 Subject: [PATCH] better Panic ? --- switch-power.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/switch-power.py b/switch-power.py index 9880976..7d108fd 100755 --- a/switch-power.py +++ b/switch-power.py @@ -211,7 +211,9 @@ def eventPanic(): logging.info("eventPanic(): switching around: "+uwscfg.slug_ids_panic) lst1 = uwscfg.slug_ids_panic.split(" ") lst2 = map(lambda e:[e,True], lst1) - for delay in map(lambda e: (40-e)/133.0,range(0,20)): + for id in lst1: + switchPower(id,True) + for delay in map(lambda e: (40-e)/33.0,range(0,20)): e = random.choice(lst2) e[1]=not e[1] switchPower(e[0],e[1]) -- 1.7.10.4