Commit b9affa24 authored by Error414's avatar Error414

progress function

parent e116a1f7
......@@ -219,6 +219,7 @@ stk500.prototype.upload = function (stream, hex, pageSize, timeout, done) {
function(cbdone){
self.log("programmed page");
pageaddr = pageaddr + writeBytes.length;
progressWriteHandle(Math.round((100 / hex.length) * pageaddr));
setTimeout(cbdone, 4);
}
],
......@@ -283,6 +284,7 @@ stk500.prototype.verify = function (stream, hex, pageSize, timeout, done) {
function(cbdone){
self.log("verified page");
pageaddr = pageaddr + writeBytes.length;
progressWriteHandle(Math.round((100 / hex.length) * pageaddr) + 100);
setTimeout(cbdone, 4);
}
],
......
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