Skip to content

Commit

Permalink
multiple mirobot runs ok
Browse files Browse the repository at this point in the history
  • Loading branch information
forresto committed Oct 26, 2014
1 parent d85d77e commit 48229fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en" manifest="turtle.appcache">
<!-- <html lang="en" manifest="turtle.appcache"> -->
<html lang="en">
<head>
<meta charset="utf-8" />
<title>LASER TURTLE -- Turtle Graphics to SVG</title>
Expand Down
7 changes: 6 additions & 1 deletion turtle-mirobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
}
if (commands[index]) {
console.log('sending '+index, commands[index]);
mb.send(commands[index], next);
var cmd = {
cmd: commands[index].cmd,
arg: commands[index].arg
};
mb.send(cmd, next);
index++;
}
};
Expand All @@ -41,6 +45,7 @@
} else {
mb = new Mirobot(options.address, nextInABit);
}
console.log(mb);

};

Expand Down
1 change: 1 addition & 0 deletions turtle.appcache
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CACHE MANIFEST
# 2014-10-26 12:43

index.html
turtle-svg-worker.js
Expand Down

0 comments on commit 48229fa

Please sign in to comment.