From: NeilBrown Date: Tue, 24 Mar 2015 03:51:15 +0000 (+1100) Subject: gsmd2: always call set_on for all engines. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=d29e0dbca66164e0860ae78cfd4ee06b8e8979bd;p=plato.git gsmd2: always call set_on for all engines. Previously, when calling set_on(False), that setting was not passed down to all (or any) engines. Signed-off-by: NeilBrown --- diff --git a/gsm/gsmd2.py b/gsm/gsmd2.py index 5ef18dd..b7a5f5e 100644 --- a/gsm/gsmd2.py +++ b/gsm/gsmd2.py @@ -258,10 +258,11 @@ def set_on(value): log("set on to", value) if not value: sus.block() - for e in engines: - if not value: + if not value: + for e in engines: e.retry(False) e.unblock() + for e in engines: e.set_on(value) if not value: sus.unblock()