# HG changeset patch
# User laurent
# Date 1289979035 -3600
# Node ID 65790029955706b11eea9383f571174838bae853
# Parent  7b64350c1dd82d9348f2d866d0cb9e0b430153c4
Fix bug in LPCBeremiz that use input retrieve and publish code for ouput with the same location

diff -r 7b64350c1dd8 -r 657900299557 LPCBeremiz.py
--- a/LPCBeremiz.py	Thu Aug 19 16:08:12 2010 +0200
+++ b/LPCBeremiz.py	Wed Nov 17 08:30:35 2010 +0100
@@ -313,7 +313,7 @@
                     group = next
             var_loc = loc[i:]
             for variable in _GetModuleChildren(group):
-                if variable["location"] == var_loc:
+                if variable["location"] == var_loc and location["DIR"] == LOCATION_DIRS[variable["type"]]:
 #                    if location["DIR"] != LOCATION_DIRS[variable["type"]]:
 #                        raise Exception, "Direction conflict in variable definition"
 #                    if location["IEC_TYPE"] != variable["IEC_type"]: