Commit 270836b5 authored by Ryan Day's avatar Ryan Day

fixing out of order call

parent 04722ba7
......@@ -55,18 +55,21 @@ programmer.sync(5,function(err,data){
programmer.verifySignature(signature,function(err,data){
console.log('callback sig',err," ",data);
});
programmer.enterProgrammingMode(options,function(err,data){
console.log('enter programming mode.',err,data);
});
programmer.enterProgrammingMode(options,function(err,data){
console.log('enter programming mode.',err,data);
});
programmer.upload( hex, pageSize,function(err,data){
console.log('upload> ',err,data);
programmer.upload( hex, pageSize,function(err,data){
console.log('upload> ',err,data);
programmer.exitProgrammingMode(function(err,data){
console.log('exitProgrammingMode> ',err,data)
})
});
programmer.exitProgrammingMode(function(err,data){
console.log('exitProgrammingMode> ',err,data)
})
});
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