From f728db3bb5516f7a2c9c7dd9ed97940155f45ade Mon Sep 17 00:00:00 2001 From: Christopher Mason Date: Fri, 26 May 2017 22:23:07 -0500 Subject: [PATCH] Fix scrollBytes when used with multiple devices This fixes a bug in the ```scrollBytes``` method. The ```interval``` variable used was not locally declared, so when multiple pads are in use and simultaneously scrolling text - the first to complete stops all messages. --- launchpad.js | 1 + 1 file changed, 1 insertion(+) diff --git a/launchpad.js b/launchpad.js index 9eca09d..698030f 100644 --- a/launchpad.js +++ b/launchpad.js @@ -296,6 +296,7 @@ Launchpad.prototype.clearScroll = function() { Launchpad.prototype.scrollBytes = function(bytes, delay, color, onFinished) { var perScreen = 8; var charPos = 0; + var interval = 0; var overallBytes = []; for (var i= 0; i < bytes[0].length; i++) { var toAdd = "";