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 204... | Line 204... | ||
| 204 | if (false) |
204 | if (false) |
| 205 | { |
205 | { |
| 206 | this.myProgrammingState = "COPY"; |
206 | this.myProgrammingState = "COPY"; |
| 207 | this.myProgrammingCallback(true, "PROGRESS", "Start to copy bios to new location"); |
207 | this.myProgrammingCallback(true, "PROGRESS", "Start to copy bios to new location"); |
| 208 | var canMessage = new CanNMTMessage("nmt", "Pgm_Copy"); |
208 | var canMessage = new CanNMTMessage("nmt", "Pgm_Copy"); |
| - | 209 | canMessage.setData("Source0", source); |
|
| 209 | canMessage.setData(" |
210 | canMessage.setData("Source1", source); |
| - | 211 | canMessage.setData("Destination0", destination); |
|
| 210 | canMessage.setData(" |
212 | canMessage.setData("Destination1", destination); |
| - | 213 | canMessage.setData("Length0", length); |
|
| 211 | canMessage.setData(" |
214 | canMessage.setData("Length1", length); |
| 212 | canMessage.send(); |
215 | canMessage.send(); |
| 213 | this.stopProgramming(); |
216 | this.stopProgramming(); |
| 214 | } |
217 | } |
| 215 | else |
218 | else |
| 216 | { |
219 | { |
| Line 218... | Line 221... | ||
| 218 | this.reset(); |
221 | this.reset(); |
| 219 | } |
222 | } |
| 220 | break; |
223 | break; |
| 221 | 224 | ||
| 222 | case "COPY": //this will never occur, bios does not send ack for copy command, it just moves data in flash then reset itself |
225 | case "COPY": //this will never occur, bios does not send ack for copy command, it just moves data in flash then reset itself |
| 223 | var source = ""; ///TODO: Fill in something here |
- | |
| 224 | var destination = ""; ///TODO: Fill in something here |
- | |
| 225 | var length = ""; ///TODO: Fill in something here |
- | |
| 226 | - | ||
| 227 | this.myProgrammingWantAck = ""; ///TODO: Fill in something here |
- | |
| 228 | - | ||
| 229 | - | ||
| 230 | this.myProgrammingCallback(true, "END", ""); ///TODO: Fill in something meaningfull text |
- | |
| 231 | break; |
226 | break; |
| 232 | 227 | ||
| 233 | default: |
228 | default: |
| 234 | break; |
229 | break; |
| 235 | } |
230 | } |