Rev 1022 | Rev 1034 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1022 | Rev 1028 | ||
|---|---|---|---|
| Line 72... | Line 72... | ||
| 72 | { |
72 | { |
| 73 | print("No such service found.\n"); |
73 | print("No such service found.\n"); |
| 74 | } |
74 | } |
| 75 | 75 | ||
| 76 | return ServiceManager.Services[fullId]; |
76 | return ServiceManager.Services[fullId]; |
| - | 77 | } |
|
| - | 78 | ||
| - | 79 | function testOutput() |
|
| - | 80 | { |
|
| - | 81 | _print(ClientId, "===="); |
|
| - | 82 | _print(ClientId, "\r"); |
|
| - | 83 | _print(ClientId, "=AR="); |
|
| - | 84 | ||
| - | 85 | } |
|
| - | 86 | ||
| - | 87 | function resetNode(hardwareId) |
|
| - | 88 | { |
|
| - | 89 | ProgrammingClientId = ClientId; |
|
| - | 90 | ||
| - | 91 | if (hardwareId.length > 2) |
|
| - | 92 | { |
|
| - | 93 | if (hardwareId.substr(0,2)=="0x") |
|
| - | 94 | { |
|
| - | 95 | hardwareId = hex2uint(hardwareId.substring(2,hardwareId.length)); |
|
| - | 96 | } |
|
| - | 97 | } |
|
| - | 98 | ||
| - | 99 | var node = CanNodes[hardwareId]; |
|
| - | 100 | ||
| - | 101 | if (!node) |
|
| - | 102 | { |
|
| - | 103 | print("Failed. No node is online that has that hardware id, " + hardwareId + "\n"); |
|
| - | 104 | return; |
|
| - | 105 | } |
|
| - | 106 | node.reset(); |
|
| 77 | } |
107 | } |
| 78 | 108 | ||
| 79 | var ProgrammingClientId = null; |
109 | var ProgrammingClientId = null; |
| 80 | 110 | ||
| 81 | function programNodeCallback(status, event, text) |
111 | function programNodeCallback(status, event, text) |