--- a/LPCManager.py Wed Feb 20 19:17:49 2013 +0100
+++ b/LPCManager.py Fri Feb 22 11:54:26 2013 +0100
@@ -16,8 +16,8 @@
if __name__ == '__main__':
- print "\nUsage of LPCBeremiz.py :"
- print "\n %s Projectpath Buildpath port\n"%sys.argv[0]
+ print "\nUsage of LPCManager.py :" + print "\n %s Projectpath Buildpath port [arch]\n"%sys.argv[0] opts, args = getopt.getopt(sys.argv[1:], "h", ["help"])
@@ -31,7 +31,7 @@
+ if len(args) < 3 or len(args) > 4: @@ -42,6 +42,10 @@
if os.path.exists("LPC_DEBUG"):
__builtin__.__dict__["BMZ_DBG"] = True
@@ -888,12 +892,15 @@
#Load and init all the children
- if havecanfestival and self.GetChildByName("CanOpen") is None:
+ canopen_child = self.GetChildByName("CanOpen") + if arch == "MC8" and havecanfestival and canopen_child is None: canopen = self.CTNAddChild("CanOpen", "CanOpen", 0)
- #canopen.BaseParams.setEnabled(False)
+ elif (arch != "MC8" or not havecanfestival) and canopen_child is not None: + canopen_child.CTNRemove() if self.CTNTestModified():
@@ -1811,14 +1818,14 @@
text = self.socket.recv(2048)
idx = self.Buffer.find("\n")
line = self.Buffer[:idx+1]
self.Buffer = self.Buffer[idx+1:]
- print "command >"+line+str(len(line))