Commit fe054907 authored by Error414's avatar Error414

progress handle

parent 0ee056e1
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -346,6 +346,7 @@ stk500.prototype.upload = function(hex, pageSize, done) {
function(cbdone){
//console.log("programmed page");
pageaddr = pageaddr + writeBytes.length;
progressWriteHandle(Math.round((100 / hex.length) * pageaddr));
setTimeout(cbdone, 4);
}
],
......
{
"name": "stk500-v2",
"version": "1.0.2",
"version": "1.0.3",
"description": "STK500 v2 programmer in javascript",
"main": "index.js",
"scripts": {
......
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