Rev 1258 | Rev 1572 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1258 | Rev 1259 | ||
|---|---|---|---|
| Line 156... | Line 156... | ||
| 156 | pcints = 0 |
156 | pcints = 0 |
| 157 | 157 | ||
| 158 | for moduleName, moduleSection in moduleSections.iteritems(): |
158 | for moduleName, moduleSection in moduleSections.iteritems(): |
| 159 | c = 0 |
159 | c = 0 |
| 160 | for line in moduleSection: |
160 | for line in moduleSection: |
| - | 161 | if len(line) > 0: |
|
| 161 | if line[0] != '#': |
162 | if line[0] != '#': |
| 162 | if line.find("<ID>") != -1: |
163 | if line.find("<ID>") != -1: |
| 163 | line = line.replace("<ID>", getFreeModuleId(moduleName)) |
164 | line = line.replace("<ID>", getFreeModuleId(moduleName)) |
| 164 | elif line.find("<TIMER>") != -1: |
165 | elif line.find("<TIMER>") != -1: |
| 165 | line = line[:line.find("=")+1] + hex(timers) + " /* <TIMER> -- DO NOT REMOVE THIS COMMENT -- */" |
166 | line = line[:line.find("=")+1] + hex(timers) + " /* <TIMER> -- DO NOT REMOVE THIS COMMENT -- */" |
| Line 171... | Line 172... | ||
| 171 | moduleSection[c] = line; |
172 | moduleSection[c] = line; |
| 172 | c += 1 |
173 | c += 1 |
| 173 | 174 | ||
| 174 | c = 0 |
175 | c = 0 |
| 175 | for line in applicationSection: |
176 | for line in applicationSection: |
| - | 177 | if len(line) > 0: |
|
| 176 | if line[0] != '#': |
178 | if line[0] != '#': |
| 177 | if line.find("<TIMER>") != -1: |
179 | if line.find("<TIMER>") != -1: |
| 178 | line = line[:line.find("=")+1] + hex(timers) + " /* <TIMER> -- DO NOT REMOVE THIS COMMENT -- */" |
180 | line = line[:line.find("=")+1] + hex(timers) + " /* <TIMER> -- DO NOT REMOVE THIS COMMENT -- */" |
| 179 | timers += 1 |
181 | timers += 1 |
| 180 | elif line.find("TIMER_NUM_TIMERS=") != -1: |
182 | elif line.find("TIMER_NUM_TIMERS=") != -1: |