Rev 1066 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1066 | Rev 1067 | ||
|---|---|---|---|
| Line 96... | Line 96... | ||
| 96 | 96 | ||
| 97 | var node = CanNodes[hardwareId]; |
97 | var node = CanNodes[hardwareId]; |
| 98 | 98 | ||
| 99 | if (!node) |
99 | if (!node) |
| 100 | { |
100 | { |
| 101 | printTo |
101 | //printTo(ProgrammingClientId, "STOP: Failed. No node is online that has that hardware id, " + hardwareId + "\n"); |
| - | 102 | //log("A can node with hardware id " + uint2hex(canMessage.getData("HardwareId"), 32) + " was not found, starting.\n"); |
|
| - | 103 | ||
| - | 104 | /* As a node with this hardware id has not been seen it could just be that it was started before atom and has no application installed */ |
|
| - | 105 | node = new CanNode(hardwareId, null); |
|
| - | 106 | CanNodes[hardwareId] = node; |
|
| 102 |
|
107 | //return; |
| 103 | } |
108 | } |
| 104 | 109 | ||
| 105 | node.reset( function(status) |
110 | node.reset( function(status) |
| 106 | { |
111 | { |
| 107 | if (status) |
112 | if (status) |
| Line 143... | Line 148... | ||
| 143 | 148 | ||
| 144 | var node = CanNodes[hardwareId]; |
149 | var node = CanNodes[hardwareId]; |
| 145 | 150 | ||
| 146 | if (!node) |
151 | if (!node) |
| 147 | { |
152 | { |
| 148 |
|
153 | //print("STOP: Failed. No node is online that has that hardware id, " + hardwareId + "\n"); |
| 149 |
|
154 | //return; |
| - | 155 | /* As a node with this hardware id has not been seen it could just be that it was started before atom and has no application installed */ |
|
| - | 156 | node = new CanNode(hardwareId, null); |
|
| - | 157 | CanNodes[hardwareId] = node; |
|
| 150 | } |
158 | } |
| 151 | 159 | ||
| 152 | hexData = unescape(hexData); |
160 | hexData = unescape(hexData); |
| 153 | 161 | ||
| 154 | if (hexData) |
162 | if (hexData) |