Rev 462 | Rev 473 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 462 | Rev 466 | ||
|---|---|---|---|
| Line 251... | Line 251... | ||
| 251 | 251 | ||
| 252 | static private bool parseInput(string instr) { |
252 | static private bool parseInput(string instr) { |
| 253 | //parse commands entered on std in |
253 | //parse commands entered on std in |
| 254 | if (instr.Equals("reset")) { //reset command, send a reset to current node |
254 | if (instr.Equals("reset")) { //reset command, send a reset to current node |
| 255 | if (sNodeid) { |
255 | if (sNodeid) { |
| - | 256 | dc.flushData(); |
|
| 256 | CanNMT cpn = new CanNMT(); |
257 | CanNMT cpn = new CanNMT(); |
| 257 | cpn.doReset(dc, nodeid); |
258 | cpn.doReset(dc, nodeid); |
| 258 | } else { |
259 | } else { |
| 259 | if (DEBUG_LEVEL>0) { Console.WriteLine("No nodeid has been specified"); } |
260 | if (DEBUG_LEVEL>0) { Console.WriteLine("No nodeid has been specified"); } |
| 260 | } |
261 | } |
| Line 295... | Line 296... | ||
| 295 | } |
296 | } |
| 296 | } |
297 | } |
| 297 | 298 | ||
| 298 | if (!error) { |
299 | if (!error) { |
| 299 | //send application |
300 | //send application |
| - | 301 | dc.flushData(); |
|
| 300 | dl = new Downloader(hf, dc, nodeid, dlBios); |
302 | dl = new Downloader(hf, dc, nodeid, dlBios); |
| 301 | if (!dl.go()) { |
303 | if (!dl.go()) { |
| 302 | if (DEBUG_LEVEL>0) { Console.WriteLine("Error occured during download"); } |
304 | if (DEBUG_LEVEL>0) { Console.WriteLine("Error occured during download"); } |
| 303 | error = true; |
305 | error = true; |
| 304 | } |
306 | } |