Rev 2162 | Rev 2170 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2162 | Rev 2164 | ||
|---|---|---|---|
| Line 208... | Line 208... | ||
| 208 | 208 | ||
| 209 | Node_HexData = Node_HexData + hexrow + "\n"; |
209 | Node_HexData = Node_HexData + hexrow + "\n"; |
| 210 | Node_HexNumLines += 1; |
210 | Node_HexNumLines += 1; |
| 211 | 211 | ||
| 212 | return true; |
212 | return true; |
| - | 213 | } |
|
| - | 214 | ||
| - | 215 | function Node_GetProgramProgress(node_id) |
|
| - | 216 | { |
|
| - | 217 | if (arguments.length < 1) |
|
| - | 218 | { |
|
| - | 219 | return "\033[31mError: Not enough parameters given.\033[0m"; |
|
| - | 220 | } |
|
| - | 221 | ||
| - | 222 | //if (!NodeExport_ProgramNodeHex(node_id, bios > 0, Node_HexData)) |
|
| - | 223 | //{ |
|
| - | 224 | // return "\033[31mError: Failed to start programming, this can happen if node only contains bios and it was connected before atom was started/restarted.\033[0m"; |
|
| - | 225 | //} |
|
| - | 226 | ||
| - | 227 | return NodeExport_GetProgramProgress(node_id); |
|
| 213 | } |
228 | } |
| 214 | 229 | ||
| 215 | function Node_ProgramNative(node_id, bios, hexnumlines) |
230 | function Node_ProgramNative(node_id, bios, hexnumlines) |
| 216 | { |
231 | { |
| 217 | if (arguments.length < 3) |
232 | if (arguments.length < 3) |