fixed : init_level bug
authorgreg
Thu, 28 Aug 2008 15:08:41 +0200
changeset 228 848da15cf513
parent 227 48c13b84505c
child 229 8bc65076e290
fixed : init_level bug
remove -lrt in LDFLAG
plugger.py
--- a/plugger.py	Thu Aug 28 14:53:11 2008 +0200
+++ b/plugger.py	Thu Aug 28 15:08:41 2008 +0200
@@ -962,7 +962,7 @@
         @param locations: ignored
         @return: [(C_file_name, CFLAGS),...] , LDFLAGS_TO_APPEND
         """
-        return [(C_file_name, self.plcCFLAGS) for C_file_name in self.PLCGeneratedCFiles ] , "-lrt", False
+        return [(C_file_name, self.plcCFLAGS) for C_file_name in self.PLCGeneratedCFiles ] , "", False
     
     def ResetIECProgramsAndVariables(self):
         """
@@ -1125,7 +1125,7 @@
             "publish_calls":"\n    ".join([ #Call publish in reverse order
                   "__publish_%s();"%locstrs[i-1] for i in xrange(len(locstrs), 0, -1)]),
             "init_calls":"\n    ".join([
-                  "init_level=%d; "%i+
+                  "init_level=%d; "%(i+1)+
                   "if(res = __init_%s(argc,argv)){"%locstr +
                   #"printf(\"%s\"); "%locstr + #for debug
                   "return res;}" for i,locstr in enumerate(locstrs)]),