Permalink
Browse files

stop animation when generating code

  • Loading branch information...
1 parent 3069c73 commit e822980344a6aae31f73c889b7480d03ef089041 @rambo rambo committed Mar 23, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 software/pc/animationbuilder/animationbuilder.html
@@ -381,6 +381,9 @@
// This will generate the Arduino code for the animation
jQuery('#generatebutton').click(function(){
+ animation.stop();
+ jQuery('#previewbutton').html('Preview');
+
animation_code = "const Animation "+jQuery('#animation_name').val()+" PROGMEM = {\n &next_animation_name,\n B";
for (i = 7; i >= 0; i--)
{

0 comments on commit e822980

Please sign in to comment.