Skip to content

Commit 93c414a

Browse files
fix: changed loop variable from const to let (#168)
1 parent 635a4fa commit 93c414a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/bbdmx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BBDMX.prototype.sendUniverse = function () {
2222
let channel;
2323
let messageBuffer = Buffer.from(UNIVERSE_LEN.toString());
2424

25-
for (const i = 1; i <= UNIVERSE_LEN; i++) {
25+
for (let i = 1; i <= UNIVERSE_LEN; i++) {
2626
channel = Buffer.from(' ' + this.universe[i]);
2727
messageBuffer = Buffer.concat([messageBuffer, channel]);
2828
}
@@ -55,7 +55,7 @@ BBDMX.prototype.update = function (u, extraData) {
5555
};
5656

5757
BBDMX.prototype.updateAll = function (v) {
58-
for (const i = 1; i <= UNIVERSE_LEN; i++) {
58+
for (let i = 1; i <= UNIVERSE_LEN; i++) {
5959
this.universe[i] = v;
6060
}
6161
};

0 commit comments

Comments
 (0)