From fadac0cf83a41c6ff41d97881e4b029cb9a74aa4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 16 Jan 2015 23:50:33 +0100 Subject: [PATCH] drivers: fix mask generation when using cond --- miscope/host/drivers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miscope/host/drivers.py b/miscope/host/drivers.py index a3d65633..44084646 100644 --- a/miscope/host/drivers.py +++ b/miscope/host/drivers.py @@ -71,7 +71,7 @@ class MiLaDriver(): if cond is not None: for k, v in cond.items(): trigger |= getattr(self, k+"_o")*v - mask |= getattr(self, k+"_m")*v + mask |= getattr(self, k+"_m") t = getattr(self, "mila_trigger_port{d}_trig".format(d=int(port))) m = getattr(self, "mila_trigger_port{d}_mask".format(d=int(port))) t.write(trigger) -- 2.30.2