Rev 2171 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2171 | Rev 2188 | ||
|---|---|---|---|
| Line 7... | Line 7... | ||
| 7 | 7 | ||
| 8 | Node_WaitClientId = null; |
8 | Node_WaitClientId = null; |
| 9 | 9 | ||
| 10 | Node_ResetNodeNativeId = null; |
10 | Node_ResetNodeNativeId = null; |
| 11 | Node_ProgramNodeNativeId = null; |
11 | Node_ProgramNodeNativeId = null; |
| - | 12 | Node_WaitClientNativeId = null; |
|
| 12 | Node_Native_Reset = false; |
13 | Node_Native_Reset = false; |
| 13 | Node_Native_Program = false; |
14 | Node_Native_Program = false; |
| 14 | Node_Native_WaitNodeId = false; |
15 | Node_Native_WaitNodeId = false; |
| 15 | 16 | ||
| 16 | Node_HexData = ""; |
17 | Node_HexData = ""; |
| Line 45... | Line 46... | ||
| 45 | } |
46 | } |
| 46 | if (node_id == Node_ProgramNodeNativeId && available) |
47 | if (node_id == Node_ProgramNodeNativeId && available) |
| 47 | { |
48 | { |
| 48 | Node_ProgramNodeNativeId = null; |
49 | Node_ProgramNodeNativeId = null; |
| 49 | Node_Native_Program = true; |
50 | Node_Native_Program = true; |
| - | 51 | } |
|
| - | 52 | ||
| - | 53 | if (Node_WaitClientNativeId != null && available) |
|
| - | 54 | { |
|
| - | 55 | Node_Native_WaitNodeId = node_id; |
|
| - | 56 | ||
| - | 57 | Node_WaitClientNativeId = null; |
|
| 50 | } |
58 | } |
| 51 | 59 | ||
| 52 | if (Node_WaitClientId != null && available) |
60 | if (Node_WaitClientId != null && available) |
| 53 | { |
61 | { |
| 54 | var result = NodeExport_GetNodeInformation(node_id); |
62 | var result = NodeExport_GetNodeInformation(node_id); |
| 55 | Node_Native_WaitNodeId = node_id; |
- | |
| 56 | 63 | ||
| 57 | if (!result) |
64 | if (!result) |
| 58 | { |
65 | { |
| 59 | Console_LogToClient(Node_WaitClientId, "\033[31mNo node with id " + node_id + " found.\033[0m\n"); |
66 | Console_LogToClient(Node_WaitClientId, "\033[31mNo node with id " + node_id + " found.\033[0m\n"); |
| 60 | return false; |
67 | return false; |
| Line 148... | Line 155... | ||
| 148 | } |
155 | } |
| 149 | } |
156 | } |
| 150 | 157 | ||
| 151 | function Node_WaitForInformationNative() |
158 | function Node_WaitForInformationNative() |
| 152 | { |
159 | { |
| 153 |
|
160 | Node_WaitClientNativeId = true; |
| 154 | Node_Native_WaitNodeId = false; |
161 | Node_Native_WaitNodeId = false; |
| 155 | } |
162 | } |
| 156 | 163 | ||
| 157 | function Node_ResetPollNative() |
164 | function Node_ResetPollNative() |
| 158 | { |
165 | { |