Commit fbc39a83 authored by Ryan Day's avatar Ryan Day

Merge pull request #1 from jacobrosenthal/bringcurrent

programmed but didnt respond as is, this was the difference from the liv...
parents 8ddf5da6 3ea403b5
...@@ -337,8 +337,10 @@ Device.prototype.pagedWrite = function(bytes, cbDone) { ...@@ -337,8 +337,10 @@ Device.prototype.pagedWrite = function(bytes, cbDone) {
// Set the program address // Set the program address
function(cbStep) { function(cbStep) {
var useaddr = pageaddr >> 1; var useaddr = pageaddr >> 1;
var cmdBuf = [0x06, 0x80, 0x00, 0x00, 0x00]; var cmdBuf = [0x06];
cmdBuf[3] = useaddr >> 8; cmdBuf[1] = (useaddr >> 24) & 0xff | 0x80;
cmdBuf[2] = (useaddr >> 16) & 0xff;
cmdBuf[3] = (useaddr >> 8) & 0xff;
cmdBuf[4] = useaddr & 0xff; cmdBuf[4] = useaddr & 0xff;
self.sendBootloadCommand(cmdBuf, function(err, pkt) { self.sendBootloadCommand(cmdBuf, function(err, pkt) {
if (err) console.error(err); if (err) console.error(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment